Professional Documents
Culture Documents
3. Display the employee name and department number by joining the columns using
concatenation function.
4. Calculate and display the rounded salary of employee King and Ford after dividing salary
by 300.
5. Calculate and display the remainder of the ratio of salary to commission for all
employees whose job title is salesman.
6. Display the employee number, hiredate and number of months Blake has worked.
8. Display the employee number, hiredate and rounded hiredate to month. Use the round
function.
9. Display the employee number, hiredate and truncated hiredate to month. Use the trunc
function.
10. Manipulate the salary of employee Blake in such a way that it is displayed as $002,850
11. Display the hiredate of all employees in the format DD-MONTH-YEAR(e.g 17 December
Nineteen Eighty)
13. Display all the data of commission table in such a way that if there is any null value in
this column it will be replaced by the string ‘No Commission Yet’.
14. Check if the values of column ename and job are equal using nullif function.
15. Manipulate the data of comm column of emp table in such way that if data is null it will
display NULL and if data is not null it will display not null.
16. Display the incremented salary of salesman by $2000, manager by $3000 and president
by $4000. Salaries of other employee will not increase.
17. Find the average, minimum and maximum salary of the employees. Label the columns
AVG, MIN and MAX respectively.
18. Modify your previous query to find the average, minimum and maximum salary of
employees according to department number.
19. Modify your previous query to find the average, minimum and maximum salary of
employees according to job category.
20. Display the department number and minimum salary grouped by department number
but make sure the minimum salary is greater than $800.
24. Display the sum of salaries grouped by the department number and job but the sum of
salary must be greater than 5000.
**After solving the above questions using Oracle 10g, write the SQLs in a text document (the
name of the text document MUST be your ID and the SQLs MUST be numbered accordingly)
and upload it in the provided link in your VUES account