Explanation of Solution
Information systems courses:
The job seeker tells about the course of
Explanation of Solution
SQL query:
To create a table in SQL, the programmer must know about syntax for the code.
The syntax for creating a table is as follows:
CREATE TABLE TABLE_NAME (
Column1 datatype,
Column2 datatype,
…
);
The following table “Employee” is created using the below given syntax in SQL.
CREATE TABLE Employee (EMP_NUM CHAR(3) PRIMARY KEY, EMP_LNAME VARCHAR(15), EMP_FNAME VARCHAR(15), EMP_INITIAL CHAR(1), EMP_HIREDATE DATE, JOB_CODE CHAR(3), FOREIGN KEY (JOB_CODE) REFERENCES JOB);
Explanation:
The table named “Employee” was created using the above query as per the given data types. The data type for “EMP_NUM”, “EMP_INITIAL”, and “JOB_CODE” is given as “CHAR”. The data type for “EMP_LNAME”, “EMP_FNAME” is “VARCHAR” and the data type for “EMP_HIREDATE” is given as “DATE”.
Want to see more full solutions like this?
Chapter 13 Solutions
Management Information Systems: Managing The Digital Firm -- Student Value Edition (16th Edition)
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education