SlideShare a Scribd company logo
1 of 2
/*************************************************/
/* 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
,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');

More Related Content

Similar to Wk2 assign

I have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docxI have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docxsamirapdcosden
 
I am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docxI am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docxmaple8qvlisbey
 
Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011David Fetter
 
Starting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docxStarting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docxdessiechisomjj4
 
Project hotel on hotel management fo
Project  hotel on hotel management foProject  hotel on hotel management fo
Project hotel on hotel management foSunny Singhania
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxcarolinef5
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxdonaldp2
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docxcuddietheresa
 
Complex Queries using MYSQL00123211.pptx
Complex Queries using MYSQL00123211.pptxComplex Queries using MYSQL00123211.pptx
Complex Queries using MYSQL00123211.pptxmetriohanzel
 
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdfSQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdfarrowit1
 
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt     Use for TM254 2021J TMA02 Question 6 .pdfThe resto txt     Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt Use for TM254 2021J TMA02 Question 6 .pdfgiriraj65
 
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015datastaxjp
 
Project fast food automaton
Project fast food automatonProject fast food automaton
Project fast food automatonvarun arora
 

Similar to Wk2 assign (20)

I have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docxI have the attached copy of the assignment description. And here is .docx
I have the attached copy of the assignment description. And here is .docx
 
I am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docxI am working on this homework using MYSQL database. Can you help. At.docx
I am working on this homework using MYSQL database. Can you help. At.docx
 
Quiz using C++
Quiz using C++Quiz using C++
Quiz using C++
 
Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011
 
Quick reference for hql
Quick reference for hqlQuick reference for hql
Quick reference for hql
 
Starting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docxStarting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docx
 
Project hotel on hotel management fo
Project  hotel on hotel management foProject  hotel on hotel management fo
Project hotel on hotel management fo
 
Writeable CTEs: The Next Big Thing
Writeable CTEs: The Next Big ThingWriteable CTEs: The Next Big Thing
Writeable CTEs: The Next Big Thing
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Complex Queries using MYSQL00123211.pptx
Complex Queries using MYSQL00123211.pptxComplex Queries using MYSQL00123211.pptx
Complex Queries using MYSQL00123211.pptx
 
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdfSQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
SQL FILE FROM MOODLEUSE [master]GO Object Databa.pdf
 
4sem dbms(1)
4sem dbms(1)4sem dbms(1)
4sem dbms(1)
 
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt     Use for TM254 2021J TMA02 Question 6 .pdfThe resto txt     Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
 
Cassandra 2.2 & 3.0
Cassandra 2.2 & 3.0Cassandra 2.2 & 3.0
Cassandra 2.2 & 3.0
 
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
 
Project fast food automaton
Project fast food automatonProject fast food automaton
Project fast food automaton
 
DOODB_LAB.pptx
DOODB_LAB.pptxDOODB_LAB.pptx
DOODB_LAB.pptx
 
Functions
FunctionsFunctions
Functions
 

Wk2 assign

  • 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');