Database - Interview Questions and Answers for 'Computer sciences corporation (csc) india' | Search Interview Question -

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.
Label / Company      Label / Company / Text


Database - Interview Questions and Answers for 'Computer sciences corporation (csc) india' - 1 question(s) found - Order By Newest

 Q1. With a Table employee having columns Id,Name,ManagerEmployeeId, Write a SQL to find the Manager with maximum number of employees ?Database
Ans. Select Name from EMPLOYEE where ID in (Select ManagerEmployeeId from EMPLOYEE
Group By ManagerEmployeeId
order by count(Id)

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     database  sql     Asked in 1 Companies

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 ?
 What is a self Join and give an example of a self Join ?


What is self Join and What is it's purpose ?
 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 ?

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: