Database: Convert E-R diagrams to relational schema and show
• Primary Keys (using underline)
• Foreign Keys (using dotted underline)
• Referential Integrity
If you have any doubts, please give me comment...
-- 1
EMPLOYEE(EmpID, EmpName);
PROJECT(ProjectID, ProjectTitle);
assigned_to(EmpID, ProjectID, BillingRate);
EmpID is a foreign key REFERENCES EMPLOYEE(EmpID);
ProjectID is foreign key REFERENCES PROJECT(ProjectID);
-- 2
EMPLOYEE(EmpID, EmpName);
PROJECT(ProjectID, ProjectTitle, runByEmpID);
runByEmpID is a foreign key REFERENCES EMPLOYEE(EmpID);
assigned_to(EmpID, ProjectID, BillingRate);
EmpID is a foreign key REFERENCES EMPLOYEE(EmpID);
ProjectID is foreign key REFERENCES PROJECT(ProjectID);
-- 3
EMPLOYEE(EmpID, EmpName, managerID);
managerID is a foreign key REFERENCES EMPLOYEE(EmpID);
PROJECT(ProjectID, ProjectTitle, runByEmpID);
runByEmpID is a foreign key REFERENCES EMPLOYEE(EmpID);
assigned_to(EmpID, ProjectID, BillingRate);
EmpID is a foreign key REFERENCES EMPLOYEE(EmpID);
ProjectID is foreign key REFERENCES PROJECT(ProjectID);
-- 4
student(stdid, name, gender, dob, admitdate);
undstudent(stdid, major, class);
stdid is a foreign key REFERENCES student(stdid);
gradstudent(stdid, advisor, thesistitle, asststatus);
stdid is a foreign key REFERENCES student(stdid);
-- 5
person(ssn, name, phone);
owner(ssn, spousename, profession, spouseprofess);
ssn is a foreign key REFERENCES person(ssn);
office(officeid, address, mgrname, phone);
agent(agentid, agentname, phone, officeid);
officeid is a foreign key REFERENCES office(officeid);
home(homeid, street, city, state, zip, nobedrms, nobaths, sqft, ownoccupied, commission, salesprice, ownerssn, agentid);
ownerssn is a foreign key REFERENCES person(ssn);
agentid is a foreign key REFERENCES agent(agentid);
buyer(ssn, address, minprice, bdrms, bthrms, maxprice, agentid);
ssn is a foreign key REFERENCES person(ssn);
agentid is a foreign key REFERENCES agent(agentid);
Note:
italics indicates foreign keys
Database: Convert E-R diagrams to relational schema and show • Primary Keys (using underline) • Foreign Keys (using dotted underline) • Referential Integrity Convert the E-R diagrams to relational s...
Database Schemas: Please draw the schemas like the example and not just list the entities and attributes! Thanks in advance! Convert the E-R diagrams to relational schema and show Primary Keys (using underline) Foreign Keys (using dotted underline) .Referential Integrity Your schema should look similar to the example below: CUSTOMER CustName ORDER OrderDate dob admitdate D,C gradstudent advisor major mimor class person phone D,C home homeid street buyer city ssn state ssn address zip nobedrms spousename profession spouseprofess minprice bdrms...
For these two E-R diagrams below transform the diagram to a relational schema that shows referential integrity constraints (see Figure 4-5 for an example of such a schema). Figure 4-5: A. B.
Need assistance with this question. Please show detailed steps. For each of the following (parts a through g) E-R diagrams: L. Transform the diagram to a relational schema that shows referential integrity constraints (see the following figure for an example of such a schema - underlined items are primary keys, dotted underlines refer to foreign keys, while the arrows indicate direction from foreign to primary) CUSTOMER CustomerlD CustomerName ORDER OrderlD OrderDate CustomerlD ORDER LINE OrderlD rd OrderedQuantity PRODUCT roductD ProductDescription
Given the following relational database schema (primary keys are bold and underlined). Answer questions 2.1 to 2.4 Orders(orderld, customerld, dateOrdered, dateRequired, status) Customer(customerld, customerLastName, customerStreet, customerCity, customerState, customer Lip OrderDetails(orderld.productld, quantity, lineNumber, amount) Products(productld, name, description, quantity, unitPrice) Account(accountNumber, customerld, dateOpened, creditCard, mailingStreet, mailingCity, mailingState, mailingZip) 2.1 (2 Points) List all possible foreign keys. For each foreign key list both the referencing and referenced relations. 2.2 (2 Points) Devise a reasonable database instance by filling the tables with data of...
The relational schema shown below is part of a student database. The primary and foreign keys are highlighted in bold.Student (studNo, studName, address, mobileNo)Course (courseNo, courseName, creditHour, level) Registration (studNo, courseNo, regDate, semester, session)Project (projNo, projName, courseNo)Assignment (projNo, studNo, startDate, dueDate, hoursSpent)Write SQL queries based on the student database given above: 1. Create tables & constraints for the student database.2. Insert some data into the tables to check that the tables created are correct. No limit on how many rows you want...
please use dia to draw the e-r diagram to create Entity - Relationship Diagrams then use MS access This project requires you to create a database design. Your design will be documented in a set of Entity-Relationship Crow's Foot diagrams using the representation as shown in the lecture materials. Draw a set of Entity-Relationship diagrams to model the following scenario. The Maggs Realty Company wants to track the Sales Offices that they have across all of Ontario They are interested...