The document contains SQL commands to create a database named 'company_old' and its structure, including three tables: Emps, Depts, and Locs. It defines the schema for each table and populates them with initial data for employees, departments, and locations. The commands ensure that the database is created fresh by dropping existing tables and inserting new records.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views
DROP DATABASE IF EXISTS company
The document contains SQL commands to create a database named 'company_old' and its structure, including three tables: Emps, Depts, and Locs. It defines the schema for each table and populates them with initial data for employees, departments, and locations. The commands ensure that the database is created fresh by dropping existing tables and inserting new records.