You are on page 1of 2

Q1. Show the minimum, maximum and average salary of Managers.

Q2.Count the number of Clerk in the Organization.


Q3. Display the Designation wise list of employees with name, Sal and Date of Joining.
Q4. Count the number of employees who are not getting commission.
Q5. Show the average salary for all departments with more than 5 working people.
Q6. List the count of Employees grouped by DeptID.
Q7. Display the maximum salary of employees in each Department.
Q8. Display the name of Employees along with their Designation and Department
Name.
Q9. Count the number of Employees working in ACCOUNTS department.
Q10. Display the name of employees working in Delhi.
Q 11. Display the name of employees working in the same city from where they
belongs.
Q12. Display the name of Employees who is managing SALES department.
Q13. Display the name of employees who are working in Delhi and getting more than
5000.
Q14. Display the details of employees who are working in RESEARCH Department.
Q15. Find out the name of all Salesman who are not working in Mumbai.
Q16. Write a Query to find the number of Salesman are Living in Jaipur
Q1. Show the name of students enrolled in Science stream.
Q2. Count the number of students in Commerce Stream.
Q3. Count the number of teachers in each designation.
Q4. Display the maximum pay of teacher who is teaching English.
Q5. Display the name of students who are taught by “Anand Mathur”.
Q6. Display the name & designation of teachers teaching to a student named “Amit”.
Q7. Find out the name of teacher who is getting highest pay.
Q8. Find out the city of teachers who are teaching Math subject.
Q9. Find out the name of teacher who is getting lowest salary in PGTs.
Q10. Display the list of students who are taught by PGTs only.
Q1. Name all the aggregate functions of MySql Q2. What is the the difference between where and having clause ?
Q3. What are Single Row and Multiple Row Functions. Q4. How is natural join is different from equi join ?
Q5. Find Output 5) SELECT CONCAT(LOWER(“Class‟),UPPER(“xii‟));
1) SELECT TRUNCATE(22.78,1); 6) SELECT INSTR ( TRIM(“ Indoaryan ” , “A”);
2) SELECT DAYOFMONTH(“2010-10-17‟) , MONTH(Sysdate()); 7) SELECT LEFT(“To the power of” , 12) , POWER(5,3);
3) SELECT DAYOFWEEK(CurDate()); 8) SELECT RIGHT(“To the power of” , 8) , POW(5,3);
4) SELECT SUBSTR(“Common Wealth Games 2010‟,8,6); 9) SELECT ROUND(544.4583 , -2); 10) SELECT 15 / 4 , 15 * 2 , 15 + 5 ;

Q1. Show the minimum, maximum and average salary of Managers.


Q2.Count the number of Clerk in the Organization.
Q3. Display the Designation wise list of employees with name, Sal and Date of Joining.
Q4. Count the number of employees who are not getting commission.
Q5. Show the average salary for all departments with more than 5 working people.
Q6. List the count of Employees grouped by DeptID.
Q7. Display the maximum salary of employees in each Department.
Q8. Display the name of Employees along with their Designation and Department
Name.
Q9. Count the number of Employees working in ACCOUNTS department.
Q10. Display the name of employees working in Delhi.
Q 11. Display the name of employees working in the same city from where they
belongs.
Q12. Display the name of Employees who is managing SALES department.
Q13. Display the name of employees who are working in Delhi and getting more than
5000.
Q14. Display theh details of employees who are working in RESEARCH Department.
Q15. Find out the name of all Salesman who are not working in Mumbai.
Q16. Write a Query to find the number of Salesman are Living in Jaipur
Q1. Show the name of students enrolled in Science stream.
Q2. Count the number of students in Commerce Stream.
Q3. Count the number of teachers in each designation.
Q4. Display the maximum pay of teacher who is teaching English.
Q5. Display the name of students who are taught by “Anand Mathur”.
Q6. Display the name & designation of teachers teaching to a student named “Amit”.
Q7. Find out the name of teacher who is getting highest pay.
Q8. Find out the city of teachers who are teaching Math subject.
Q9. Find out the name of teacher who is getting lowest salary in PGTs.
Q10. Display the list of students who are taught by PGTs only.
Q1. Name all the aggregate functions of MySql Q2. What is the the difference between where and having clause ?
Q3. What are Single Row and Multiple Row Functions. Q4. How is natural join is different from equi join ?
Q5. Find Output 5) SELECT CONCAT(LOWER(“Class‟),UPPER(“xii‟));
1) SELECT TRUNCATE(22.78,1); 6) SELECT INSTR ( TRIM(“ Indoaryan ” , “A”);
2) SELECT DAYOFMONTH(“2010-10-17‟) , MONTH(Sysdate()); 7) SELECT LEFT(“To the power of” , 12) , POWER(5,3);
3) SELECT DAYOFWEEK(CurDate()); 8) SELECT RIGHT(“To the power of” , 8) , POW(5,3);
4) SELECT SUBSTR(“Common Wealth Games 2010‟,8,6); 9) SELECT ROUND(544.4583 , -2); 10) SELECT 15 / 4 , 15 * 2 , 15 + 5 ;

You might also like