Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| |||||||||||||||||||||||||||
Database - Interview Questions and Answers for 'Deloitte' - 3 question(s) found - Order By Newest | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. Select salary from (select salary from employee where department = order by salary desc limit 5) emp order by salary limit 1 AND Select salary from (select salary from employee where department = order by salary desc limit 2) emp2 order by salary limit 1 | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() or What is self Join and What is it's purpose ? | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. Use Comparable or Comparator interface | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. Primary key will not accept NULL values whereas Unique key can accept one NULL value. A table can have only primary key whereas there can be multiple unique key on a table. A Clustered index automatically created when a primary key is defined whereas Unique key generates the non-clustered index. | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||