1. /*************************************************/
/* Jeffrey Kee */
/* POS410 Wk2 Assignment */
/* The following code creates the tables and */
/* columns needed for Kudler Fine Foods database.*/
/* Also included are the Primary Key and Foreign */
/* Key columns. */
/*************************************************/
Create Table JobTitle
(
JobTitleID INT PRIMARY KEY IDENTITY,
EEO1Classification VarChar (25),
JTitle VarChar (50),
JobDescription VarChar (100),
ExemptNon-exemptStatus VarChar (2),
)
CREATE TABLE Employee
(
EmployeeID INT PRIMARY KEY IDENTITY,
LastName VarChar (25) NOT NULL,
FirstName VarChar (20),
Address VarChar (35),
City VarChar (20),
State CHAR (2),
TelephoneAreaCode INT,
TelephoneNumber INT,
EEO1Classification VarChar (25),
HireDate Date,
Salary Money,
Gender CHAR (1),
Age INT,
JobTitleID INT FOREIGN KEY REFERENCES JobTitle (JobTitleID)
)
/*******************************************************/
/* The following code will insert the requested */
/* information into the correct table and columns */
/*******************************************************/
USE KudlerFineFoods
INSERT INTO
Employee(LastName,FirstName,Address,City,State,TelephoneAreaCode,TelephoneNumber
,EEO1Classification,HireDate,Salary,Gender,Age,JobTitleID)
Values ('Edelman','Glenn','175 Bishops Lane','La
Jolla','CA','619','555-0199','Sales Workers','2003-10-07',$21500,'M','64','4');
INSERT INTO
Employee(LastName,FirstName,Address,City,State,TelephoneAreaCode,TelephoneNumber
,EEO1Classification,HireDate,Salary,Gender,Age,JobTitleID)
Values ('McMullen','Eric','763 Church St.','Lemon Grove','CA','619','555-
0135','Sales Workers','2002-11-01',$13500,'M','20','3');
INSERT INTO
Employee(LastName,FirstName,Address,City,State,TelephoneAreaCode,TelephoneNumber
,EEO1Classification,HireDate,Salary,Gender,Age,JobTitleID)
Values ('Slentz','Raj','123 Torrey Dr.','North Clairmont','CA','619','555-
01223','Officials & Managers','2000-06-01',$48000,'M','34','2');
INSERT INTO
Employee(LastName,FirstName,Address,City,State,TelephoneAreaCode,TelephoneNumber
2. ,EEO1Classification,HireDate,Salary,Gender,Age,JobTitleID)
Values ('Brown','Erin','2045 Parkway Apt. 2B','Encintas','CA','760','555-
0100','Sales Workers','2003-03-12',$10530,'F','24','3');
INSERT INTO
Employee(LastName,FirstName,Address,City,State,TelephoneAreaCode,TelephoneNumber
,EEO1Classification,HireDate,Salary,Gender,Age,JobTitleID)
Values ('Carpenter','Donald','927 Second St.','Encintas','CA','619','555-
0154','Office/Clerical','2003-11-01',$15000,'M','18','9');
INSERT INTO
Employee(LastName,FirstName,Address,City,State,TelephoneAreaCode,TelephoneNumber
,EEO1Classification,HireDate,Salary,Gender,Age,JobTitleID)
Values ('Esquivez','David','10983 N. Coast Hwy
Apt.902','Encintas','CA','760','555-0108','Operatives(Semi skilled)','2003-07-
25',$18500,'M','25','8');
INSERT INTO
Employee(LastName,FirstName,Address,City,State,TelephoneAreaCode,TelephoneNumber
,EEO1Classification,HireDate,Salary,Gender,Age,JobTitleID)
Values ('Sharp','Nancy','10793 Montecino La','Ramona','CA','858','555-
0135','Sales Worders','2003-07-12',$21000,'F','24','4');
INSERT INTO JobTitle
Values ('1','Office/Clerical','Accounting Clerk','Computes classifies
records and verifies numerical data for use in maintaining accounting
records.','E');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Officials & Managers','Assistant Manager','Supervises and
coordinates activities of workers in department of food store. Assists store
manager in daily operations of store.','E');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Sales Workers','Bagger','Places customer orders in bags. Performs
carryout duties for customers.','NE');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Sales Workers','Cashier','Operates cash register to itemize and
total customer’s purchases in grocery store.','NE');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Technician','Computer Support Specialist','Installs modifies and
makes minor repairs to personal computer hardware and software systems and
provides technical assistance and training to system users.','NE');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Officials & Managers',' Director of Finance & Accounting',' Plans
and directs the finance and accounting activities for Kudler Fine Foods.','E');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Craft Workers(Skilled)','Retail Assistant Bakery &
Pastry','Obtains or prepares food items requested by customers in retail food
store.','NE');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Operatives(Semi skilled)','Retail Assistant Butchers & Seafood
Specialist','Obtains or prepares food items requested by customers in retail
food store.','NE');
INSERT INTO Jobtitle
(EEO1Classification,JTitle,JobDescription,ExemptNonexemptStatus)
Values ('Office/Clerical','Stocker','Stores prices and restocks
merchandise displays in store.','NE');