Question: What is a foreign key constraint? Why are such constraints important? What is referential integrity? ( 1 0 pts ) 2 . Explain the difference
What is a foreign key constraint? Why are such constraints important? What is
referential integrity? pts
Explain the difference between external, internal, and conceptual schemas. How
are these different schema layers related to the concepts of logical and physical
data independence? pts
Consider the following schema:
Suppliers sid: integer, sname: string, address: string
Parts pid: integer, pname: string, color: string
Catalog sid: integer, pid: integer, cost: real
The Catalog relation lists the prices charged for parts by suppliers. Write the
following queries in SQL pts:
a Find the pnames of parts for which there is some supplier.
b For each part, find the sname of the supplier who charges the most for that
part.
c Find the sids of suppliers who supply only red parts.
d Find the snames of suppliers who supply every part.
Consider the following schema:
Employee personname, street, city
Works personname, companyname, salary
Company companyname, city
Manages personname, managername
Write the following queries in relational algebra pts:
a Find the names of all employees who work for Auburn Ban
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
