Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Database - Interview Questions and Answers for 'Impetus technologies' - 1 question(s) found - Order By Newest | ||||
| ||||
Ans. When a Table Join itself , it's a Self Join. For example - we like to know the pair of department names where first dept has lesser employees than the later. Select D1.name , D2.name from Dept D1, Dept D2 where D1.employee_count < D2.employee_count | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  sql  joins  self join  self-join  Pair of employee names with first having lesser salary than later  Pair of department names where first dept has lesser employees than the later Asked in 26 Companies basic   frequent | ||||
Related Questions | ||||
What are Inner , Outer , Left and Right Joins in SQL ? | ||||
What is JDBC? Describe the steps needed to execute a SQL query using JDBC. | ||||
What are temp tables ? | ||||
Do you like Native SQL Apis like JDBC or JPA / Hibernate ? | ||||
Is there any schema in mongo DB ? | ||||
Difference between Inner and Outer Join ? | ||||
What is a Cursor ? | ||||
Does SQL allow null values ? Can we use it within Where clause ? | ||||
Write an SQL to find all records having all upper case alphanumeric characters in a field ? | ||||