Write SQL statement to display the last name and hire date for ...

1 downloads 117 Views 339KB Size Report
Oct 26, 2014 - Write SQL statement to display the last name and hire date for employees who are hired on 'FRIDAYs'. Sugg
Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113)

Quiz 2

Write SQL statement to display the last name and hire date for employees who are hired on ‘FRIDAYs’. Suggested Solution SELECT LAST_NAME, HIRE_DATE FROM EMPLOYEES WHERE NEXT_DAY (HIRE_DATE, 'FRIDAY') = HIRE_DATE + 7;

October 26, 2014

Suggest Documents