Practice 3 - Practice 3 SQL 1. Write a query to display the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Practice 3 – SQL 1. Write a query to display the current date. Label this column Date. 2. Display the employee number, name, salary, salary increase by 15% expressed as a whole number. Label the column New Salary. Save your SQL statement to a file named p3q2.sql 3. Run the query in the file p3q2.sql 4. Modify your query p3q2.sql to add an additional column that will subtract the old salary from the new salary. Label the column Increase. Rerun your query. 5. Display the employee’s name, hire date and salary review date, which is the first Monday after six months of service. Label the column REVIEW. Format the dates to appear in the format similar to “Sunday, the Seventh of September, 1981” ENAME HIREDATE REVIEW ---------------------------------------------------------------------------------------------------- KING 17-NOV-81 Monday, the Twenty-Fourth of May, 1982 6. For each employee display the employee name and calculate the number of months between today and the date the employee was hired. Label the column
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Practice 3 - Practice 3 SQL 1. Write a query to display the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online