[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: SQL

25 / 108

A table contains data like this

Employee_type No_of_Employees
--------------------- --------------
A 10
B 20
C 30
B 25
A 40
D 30

Write a query to print total no. of employees in each employee type.

Answer:

SELECT SUM(No_of_Employees) as TotalEmp, Employee_type from EmpTable Group by Employee_type

Asked In :: TCS

Post Your Answer Here:


Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.