Oracle SQL Queries: Basic Exercises with Solution
Oracle Queries: Basic [15 exercises with solution]
1. Write a Oracle SQL query to get the details of all employees and also display the specific information of all employees.
2. Write a Oracle SQL command to display the employee name, job and annual salary for all employees
3. Write a Oracle SQL query to get the total number of employees working in the company.
4. Write a Oracle SQL query to get the total salary being paid to all employees.
5. Write a Oracle SQL query to get the maximum and minimum salary from the employees table.
6. Write a Oracle SQL query to display the name of the employees in order to earning from lowest salary to highest.
7. Write a Oracle SQL query to display the name of the employees in order to earning from highest salary to lowest.
8. Write a Oracle SQL query to display the name of the employees in order to alphabetically ascending order.
9. Write a Oracle SQL query to display employee id, name, department no, salary of the employees. The output first based on the employee name in ascending order, for unique name department will come in ascending order, and for same name and department the highest salary will come first.
10. Write a Oracle SQL query to display the name and their annual salary. The result should contain those employees first who earning the highest salary.
11. Write a Oracle SQL query to display department id and total number of employees working in each department.
12. Write a Oracle SQL query to display the designation (job id) and total number of employees working in each designation.
13. Write a Oracle SQL query to display the department number and total salary for each department.
14. Write a Oracle SQL query to display the department number and maximum salary for each department.
15. Write a Oracle SQL query to display the designations (job id) and total salary allotted for each designation from the company.
More to Come !
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/oracle-exercises/basic/index.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics