Lab Assignment-7
Lab Assignment-7
(Subquery in SQL)
Table 1: SalesPeople
Snum is Primary key
Sname is Unique constraint
Snum Sname City Comm
Table 2: Customers
Cnum is Primary Key
City has not null constraint.
Snum is foreign key constraint refers Snum column of SalesPeople table.
Cnum Cname City Snum