Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
To prepare the sample data, you can run the following queries in your database query executor or on the SQL command
line. (SQL Script is shared on the moodle)
SQL Script To create and populate Sample Data.
Q-1. Fetch “FIRST_NAME” From Worker Table Using The Alias Name As <W_NAME>.
Q-4. To Print The First Three Characters of FIRST_NAME From Worker Table.
Q-5. Print all the names of workers having first alphabet of first name as M or N.
Q-6. Print th names of workers having names that start from N,M or V.
Q-9. To Print The FIRST_NAME From Worker Table After Replacing ‘A’ With ‘AA’.
Q-10. To Print The FIRST_NAME And LAST_NAME From Worker Table Into A Single Column COMPLETE_NAME. A
Space Char Should Separate Them.
Q-11. To Print All Worker Details From The Worker Table Order By FIRST_NAME Ascending.
Q-12. To Print All Worker Details From The Worker Table Order By FIRST_NAME Ascending And DEPARTMENT
Descending.
Q-13. To Print Details For Workers With The First Name As “Vipul” And “Satish” From Worker Table.
Q-14. To Print Details Of Workers Excluding First Names, “Vipul” And “Satish” From Worker Table.
Q-16. To Print Details Of The Workers Whose FIRST_NAME Contains ‘i’ as second alphabet.
Q-17. To Print Details Of The Workers Whose FIRST_NAME Ends With ‘A’ or ‘l’.
Q-18. To Print Details Of The Workers Whose FIRST_NAME starts With wi th anything from an "a" to “m”
Q-19. To Print Details Of The Workers Whose SALARY does not Lie Between 10000 0 And 5sel00000.
Q-20. To Print Details Of The Workers Who Have Joined before In Feb’2014.
Q-21. To Fetch The number Of Employees Working In The Department ‘Admin’ or ‘áccount”
Q-22 To Fetch Worker first Names With Salaries >= 50000 And <= 100000.
Q-23. To Fetch The No. Of Workers For Each Department In The Descending Order.
Q-25. To fetch the total number of employees who have joined after '14-01-2019’’.
Q-26. To Fetch The Departments That Have more Than Five People In It.
Q-27. To Show All Departments Along With The Number Of People In There.
Q-28. To Fetch The Names Of Workers Who Earn The Highest Salary.
Q-29. To Fetch Departments Along With The Total Salaries Paid For Each Of Them.