Data Definition Language (DDL): It is used for creating tables and other structures. They perform operations like, creating tables, modifying
Table Creation:
Creating table comes under Data Definition Language (DDL). Syntax for creating table is as follows:
CREATE TABLE TABLE_NAME (
Column1 datatype,
Column2 datatype,
…
);
Explanation of Solution
b.
Query:
create table company(company_name varchar2(50) primary key, city varchar2(50));
Explanation:
The above q...
Explanation of Solution
c.
Query:
create table works(employee_name varchar2(50), company_name varchar2(50), salary number(10, 2), foreign key (employee_name) references employee(employee_name), foreign key(company_name)references company(company_name));
Explanation of Solution
d.
Query:
create table manages(employee_name varchar2(50), manager_name varchar2(50) primary key, foreign key(employee_name) references employee(employee_name));
Explanation:
...
Explanation of Solution
e.
Query:
create table participated (report_number char(20) primary key, license char(20) references car, driver_id char(20) references driver, damage_amount dec(6,2) )
Explanation:
The above query is used creat...
Want to see the full answer?
Check out a sample textbook solutionChapter 21 Solutions
DATABASE SYSTEM CONCEPTS LCPO
- 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