Write an SQL que 1. Create the table following table. ATT

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question
Give solution. You may write query on page , software is not compulsory.
Write an SQL query for following tasks.
1. Create the table structure named JOB. The basic JOB table structure is summarized in the
following table. Data types not stated in summary, to be selected as suitable. (3 Marks)
ATTRIBUTE NAME
DATA TYPE
PK
JOB_NUM
CHAR(3)
JOB DESCRIPTION
VARCHAR(255)
JOB_STATUS
2. Create the table structure named EMPLOYEE. The basic EMPLOYEE table structure is
summarized in the following table. The relationship for Employee and Job is established
by JOB_CODE field in EMPLOYEE table. Data types not stated in summary, to be
selected as suitable.
(3 Marks)
ATTRIBUTE NAME
DATA TYPE
PK
EMP_NUM
INT
EMP_LASTNAME
VARCHAR(20)
EMP_FIRSTNAME
VARCHAR(20)
EMP_HIREDATE
DATE
FK
JOB_CODE
3. Insert one entity occurrence in JOB, describing details of this assignment. Insert data in
EMPLOYEE table contains your data and assign that job.
(4 Marks)
Transcribed Image Text:Write an SQL query for following tasks. 1. Create the table structure named JOB. The basic JOB table structure is summarized in the following table. Data types not stated in summary, to be selected as suitable. (3 Marks) ATTRIBUTE NAME DATA TYPE PK JOB_NUM CHAR(3) JOB DESCRIPTION VARCHAR(255) JOB_STATUS 2. Create the table structure named EMPLOYEE. The basic EMPLOYEE table structure is summarized in the following table. The relationship for Employee and Job is established by JOB_CODE field in EMPLOYEE table. Data types not stated in summary, to be selected as suitable. (3 Marks) ATTRIBUTE NAME DATA TYPE PK EMP_NUM INT EMP_LASTNAME VARCHAR(20) EMP_FIRSTNAME VARCHAR(20) EMP_HIREDATE DATE FK JOB_CODE 3. Insert one entity occurrence in JOB, describing details of this assignment. Insert data in EMPLOYEE table contains your data and assign that job. (4 Marks)
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education