0% found this document useful (0 votes)
127 views1 page

Kakatiya University B

This document contains 28 SQL questions related to querying employee data from different tables. The questions cover a range of SQL skills like filtering records, aggregating data, formatting output, string functions and DML operations. Common queries include finding employees by name, department, salary and other attributes, calculating averages, grouping data, ordering results and modifying table data.

Uploaded by

Joshna Reddy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views1 page

Kakatiya University B

This document contains 28 SQL questions related to querying employee data from different tables. The questions cover a range of SQL skills like filtering records, aggregating data, formatting output, string functions and DML operations. Common queries include finding employees by name, department, salary and other attributes, calculating averages, grouping data, ordering results and modifying table data.

Uploaded by

Joshna Reddy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

KAKATIYA UNIVERSITY B.COM [COMPUTERS] III YEAR RDBMS PRACTICAL EXAMINATION QUESTION BANK SQL 1.

Display The Details Of Employees Who Have 2 As In Their Name? 2. List The Details Of Employees Who Earn Greater Salary Than The Average? 3. Display The Details Of Dept Whose Average Salary Is Greater Than 2,000? 4. List The Number Of Clerks and Managers Department Wise If Both Are > 3? 5. Display The Details Of Employees Who Joined In February AndYear 1991 6. List The Names Of All Employees Whose Name Has More Than 5 Characters And Less Than 8 Characters? 7. Display The Dept Which Has More Than 3 Employees? 8. List The Employee Details Along With Their Managers? 9. Find The Dept Which Has Maximum Number Of Employees? 10. List The Dname,Dept_No,Loc In Which Number Of Employees Have Been Recruited? 11 .list the year in which maximum number of employees were recruited. 12 Display The Dept Details Which Has Maximum sum Of Salaries? 13 List The Names Of All Employees Who Doesnt Work In Accounting Dept_No? 14 Display The List Of Employees Whose Name Ends With R? 15 Change The Default Display Like For Dept_No 10 As Financial Dept, For 20 Accounts Dept, For 30 Management Information System, And For 40 Electronic Data Processing? 16 List The Department Which Doesnt Have Any Employees. [If It Is Not There Try With A New Table] 17 Display Empno,Ename,Sal Prefixed With A Dollar Sign And In Descending Order with The Job As Managers? 18. List the EMP details who earns third highest salary. 19 Write A Query To Delete Duplicate Record? 20. Display department numbers and total number ofemployees working in each department. 21. Display the various jobs and total number ofemployees within each job group. 22. Display the names of the employees who earn highest salary in their respective departments. 23. Display the names of the employees inUppercase. 24. Display the names of the employees in Lowercase. 25. Display the names of the employees in Proper case. 26. User appropriate function and extract 3characters starting from 2characters from the following string 'Oracle'. i.e the out put should be'ac'. 27. Replace every occurance of alphabhet A withB in the stringAllens(use translate function) 28.Display name and salary of ford if his salary is equal to hisal of his grad

You might also like