Exam 1 Review

The text is the main source, with an emphasis on the topics presented in lecture. At a minimal level, be aware of the following:

Question possibilities:

Your company’s production manager want to access the names of all employees and their salary from data contained in the tables listed below; write SQL for allowing appropriate access.

Table: Employee; Columns: EmployeeID, EmpName, Salary, DeptID

Table: Department; Columns: DeptID, Department



 

Franchise

Street

City

Zip

2035

14 Dover Dr

St. Louis

63130

4005

34 Franklin Ave

Philadelphia

54531

1100

151600 Sulfur Blvd.

San Francisco

70023

3545

1289 Rock Ave

Cincinnati

45509

 

 

Supplier

Street

City

Zip

Primary

Contact

Dell Breads

4545 Winston

Philadelphia

55344

Sandwiches

Mary Ballard

Hammocker

13 S Walport

Cincinnati

45690

Meats

Bill

Henry & Dave

15 Rogers St

San Francisco

70034

Drinks

Mr. Winters

 

Write a relational algebra statement, a tuple relational calculus statement and a SQL statement that would list the franchise and city where there is a franchise with no supplier in the same city.