SQL Exercises
SQL Exercises
SQL Exercises
Use the data model shown above and create the following SQL statements:
SQL Exercises
1. Create a new table that will be used to track employee location. The attributes
associated with the table: employee id, location id, location description, street
address, city, state, zipcode. Create a new table the attributes listed above. Please
identify the primary key. It has a relationship with employees. Provide SQL
statement below.
CREATE TABLE EMP_LOCATION (EMPLOYEEID VARCHAR(10) REFERENCES
EMPLOYEES, LOCATIONID VARCHAR(10) PRIMARY KEY, LOC_DESC