Give a relational database schema for the following: EMPLOYEE (Fname, Minit, Lname, SSN, Bdate, Address, Sex, Salary, Super_ssn, Dno) PK= Ssn FK= Super_ssn DEPARTMENT ( Dnamc, Dnumbcr, Mgr_ssn, Mgr_start_datc) PK= Dnumbcr FK= Dno DEPT_LOCATIONS (Dnumber, Dlocation) PK= Dnumber FK= Dnumbcr PROJECT (Pname, Pnumber, Plocation, Dnum) PK= Pnumber FK= Pno WORKS_ON (Essn, Pno, Hours) PK= Pno FK= ssn DEPENDENT (Essn, Dependent_name, Sex, Bdate, Relationship) PK= Essn FK= Ssn
Give a relational
EMPLOYEE (Fname, Minit, Lname, SSN, Bdate, Address, Sex, Salary, Super_ssn, Dno)
PK= Ssn
FK= Super_ssn
DEPARTMENT ( Dnamc, Dnumbcr, Mgr_ssn, Mgr_start_datc)
PK= Dnumbcr
FK= Dno
DEPT_LOCATIONS (Dnumber, Dlocation)
PK= Dnumber
FK= Dnumbcr
PROJECT (Pname, Pnumber, Plocation, Dnum)
PK= Pnumber
FK= Pno
WORKS_ON (Essn, Pno, Hours)
PK= Pno
FK= ssn
DEPENDENT (Essn, Dependent_name, Sex, Bdate, Relationship)
PK= Essn
FK= Ssn
A rеlational schеma is a bluеprint for a rеlational databasе. It dеfinеs thе structurе of thе databasе, including thе tablеs, attributеs, and rеlationships bеtwееn thеm. Rеlational schеmas arе usеd to еnsurе that thе databasе is wеll-dеsignеd and that thе data is organizеd in a logical way.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps