Welcome! Log In Create A New Profile

Advanced

First Semester Exam Q3

Posted by Darkling 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar First Semester Exam Q3
November 15, 2011 11:30AM
3.1
SELECT
E.LAST_NAME Employee,
J.JOB_TITLE Job,
E.SALARY sal

FROM EMPLOYEES E JOIN JOBS J ON E.JOB_ID = J.JOB_ID
WHERE

J.JOB_TITLE = 'Sales Representative'
OR
J.JOB_TITLE = 'Stock Clerk'

AND
E.SALARY NOT IN (2500,3500,7000)

3.2
SELECT DISTINCT DEPARTMENT_ID, JOB_ID FROM EMPLOYEES
WHERE DEPARTMENT_ID IN (10,20)
ORDER BY DEPARTMENT_ID ASC

Any Comments?
Re: First Semester Exam Q3
November 15, 2011 02:58PM
I didn't do a join for this one.

Select last_name, salary,job_id
from employees
where job_id like '%SA_R%' or job_id like '%ST_CL%'
and salary not in (2500,3500,7000)

This one can be found in practise 2
Sorry, only registered users may post in this forum.

Click here to login