Apologies, I will be more clear, here is the actual spec sheet. The database in question is one that is basic, it has customer information and the like already entered and formatted.
I asked questions to my instructors email and they have not responded, and it's getting rather close to deadline. I'm guessing this isn't too difficult, but the handouts I was given don't really help a whole lot.
Code:
Tasks:
· Create the following queries using Microsoft’s SQL environment
· MAKE A COPY of the SpyEmployee SINGLE-TABLE database that you created in project #01.
· Rename the DATABASE name FROM its current name to the new name P3-Queries-SQL-YourName
· Use the single table to create the following queries.
** When creating the queries, use ALL of the fields in the records except where stated.
** When saving the query, make all query names have a prefix of SQL followed by the number and name.
NOTE: This is an exercise using SQL, DO NOT use the QBE for this assignment,
If you do, points will be deducted points from your final score for doing so.
CREATE THE FOLLOWING QUERIES USING SQL NOT THE QBE
Query Name |
DESCRIPTION |
SORT FIELD |
SORT Order |
SQL01All |
List ALL records in the table |
LastName |
DESC |
SQL02OnlyMe |
List ONLY YOUR record |
NONE |
NONE |
SQL03Fem |
List ONLY FEMALE employees |
Salary |
DESC |
SQL04PayG3 |
Pay Grade 3 employees ONLY |
Salary |
DESC |
SQL05Noc |
ONLY employees with a STATUS OF NOC |
LastName |
NONE |
SQL06MI6Only |
List ONLY MI6 agents |
LastName |
ASC |
SQL07CertOnly |
List ALL LTT employees |
LastName |
ASC |
SQL08CertNone |
List Non LTT employees |
LastName |
ASC |
SQL09CertFem |
List LTT FEMALEs only |
Salary |
DESC |
SQL10CertM |
List Non LTT MALES |
LastName |
ASC |
SQL11LT75K |
ONLY Yearly salaries < = $75,000.00 |
Salary |
DESC |
SQL12Pay1&3 |
Paygrade 1 and 3 Only |
Paygrade |
DESC |
SQL13Sal25to75 |
Salaries between $25,000 and $75,000 - INCLUSIVE |
Salary |
DESC |
SQL14LastNameS |
Only employees last name starts with the letter S |
LastName |
ASC |
SQL15Yr09to14 |
List ONLY employees with hire dates between
01/01/2009 and 12/31/2014 INCLUSIVE DATES |
HireDate |
ASC |
SQL16MayOnly |
Only Employees hired in MAY of ANY year |
HireDate |
ASC |
SQL17HowMany |
Calculate the number of clients you have [count] |
NONE |
NONE |
SQL18JobRatio |
Calculate job assignment to completion ratio |
Job ratio |
Desc |
SQL19RatioLT50 |
Calculate job assignment Ratio less than 50% |
Job ratio |
Desc |
SQL20UpdateKS |
Update Query-Keith Salmon TO Bugs Bunny |
NONE |
NONE |
· Once complete, submit your database via the project #03 submittal link on Blackboard.