FINALREQ1
FINALREQ1
General Instructions:
a) Each item provides screen shots of your code and output and paste it in MS Word.
b) Save your work and follow this format FAMILY NAME, FIRSTNAME MIDDLE NAME (ex. GENOTIVA, ELIZABETH
REVECHE)
ORDER TABLE
1. CREATE DATABASE
Note that you will use your complete name as your database name.
5. From the following table, write a SQL query to find all Purchase amount greater than 1000 but less than
2000.
SALES TABLE
4. From the following table, write a SQL query to find the details of those salespeople whose commissions
range from 0.10 to 0.12 except from San Jose. Return salesman_id, name, city, and commission.
5. From the following table, write a SQL query to find the details of those salespeople whose commissions
beyond 0.10 to 0.12. Return salesman_id, name, city, and commission.
EMPLOYEE TABLE
4. From the following table, write a SQL query to find the employees who work at depart 47 or 63. Return emp_idno,
emp_fname, emp_lname, and emp_dept.
5. From the following table, write a SQL query to find the employees who work not in depart 47 or 63 and whose first
name contain letter ‘n’. Return emp_idno, emp_fname, emp_lname, and emp_dept.