Question: Create ERD based on the following tables. The underlines attributes are primary keys. The links are connection between primary keys and foreign keys EMPLOYEE

Create ERD based on the following tables. The underlines attributes are primary keys. The links are Question #4 Create ERD based on the following tables. The underlines attributes are primary keys. The links Question #3 Create the tables related to the following ERD. Determine the primary Keys and the foreign keys I  I Each patient is being treated for one sickness only There is only one phone number in each room in the Question #2 Consider the following ERD Where PhysID PhyName PhysDept 101 2000 0000 PatientID RoomPhone Room Question #1 Consider the following data. Arrows show the functional dependency. Product Item Id Num Quantity 

Create ERD based on the following tables. The underlines attributes are primary keys. The links are connection between primary keys and foreign keys EMPLOYEE FNAME MINIT LNAME SSN BDATE ADDRESS SEX SALARY SUPERSSN DEPARTMENT ESSN DNAME PROJECT PNAME DEPT LOCATIONS DNUMBER DEPENDENT DNUMBER MGRSSN PNUMBER ESSN DLOCATION WORKS ON PNO DEPENDENT NAME PLOCATION HOURS SEX MGRSTARTDATE DNUM BOATE RELATIONSHIP DNO Question #4 Create ERD based on the following tables. The underlines attributes are primary keys. The links are connection between primary keys and foreign keys Book BookID BookName Publisher Name Publisher Name Address Phone Book_Loans BookID Branch Id LibraryBranch BranchID BranchName Address BookCopies BookID Branchid NoOfCopies Book_Authors BookID Card No AuthorName DateOut DueDate Borrower Card No Name Address Phone Question #3 Create the tables related to the following ERD. Determine the primary Keys and the foreign keys of each table. A1 A2 B1 B2 C1 C2 A 1 R1 N B C N R2 1 M AttOfR5 AttOfR4 R3 AttOfR3 N F1 F R5 E R4 F2 F3 N D N D1 D2 D3 F4 E1 E2 D5 D4 I I Each patient is being treated for one sickness only There is only one phone number in each room in the hospital Each doctor can do only do one treatment, but a treatment can be done by many doctors The treatment cost is fixed for each treatment Each doctor works in only one department, but a department can have many doctors Each department has 1 supervisor. This supervisor is just one of the physicians who works in that department A Patient is charged based on the treatment cost and number of days in hospital Note that not all the rooms in the hospital has patient at a particular time but all patient must be is some rooms. Further, only some of the physicians are supervising the departments in the hospital; however, all departments must be managed by some physicians. You may make any other assumption you think is necessary but you have to be very specific and realistic. You can add other assumptions but you are not allowed to change the above assumptions Do the following a) Change the ERD to tables b) Place the tables in 3rd normal form (if necessary) c) Revise the given ERD based on the normalized tables (if necessary) d) Write a script to create a database. Your script should create the tables and ensures that all constraints are set properly. Here is some information to create your tables using SQL. Depending on your normalization process, some of the following fields may not be in your final normalized table. DATA ITEM (COLUMN NAME) PatientID PhysID Room No. AdmitDate PatientName PatientAddress RoomPhone HospitalStayDays RoomRate AmountOwing PhysName PhysDept DeptSupervisorld TreatId TreatDesc TreatCost TYPE Numeric Integer Numeric Integer Numeric Integer Date Character Up to 50 Character Up to 200 Character Up to 8 Numeric Integer Numeric Decimal 10 with 2 decimals Numeric - Decimal 10 with 2 decimals Character Up to 50 Numeric Integer Numeric Integer Numeric Integer Character - Up to 200 Numeric - Decimal 10 with 2 decimals RESTRICTIONS > 100 and = 0 >= 30.00 and = 50.00 Question #2 Consider the following ERD Where PhysID PhyName PhysDept 101 2000 0000 PatientID RoomPhone Room No DeptSupervisorld RoomRate Physician cures Patient TreatCost TreatDesc Treatld Amount Owing HospitalStaydays PatientName PatientAddress AdminDate PatientId: It is the identification number of each patient PatientName: It is the name of the patient Patientddr: It is the address of the patient AdmitDate: It is the date when the patient is admitted to the hospital AmounOwing: The amount the patient owes based on his/her sickness after being discharged RoomNo: it is the room where the patient is kept in the hospital RoomPhone: The phone number in the patient's room HospitalStayDays: Number of days the patient would be in the hospital for treatment. RoomRate: The rate charged for every day the patient is in the room In the second table: PhysId: It is the identification number of each physician PhyName: It is the name of each physician PhysDept: It is the department id where physician works DeptSupervisorId: It is the id of the physician who is in change of managing the PhyDept. For example, suppose physician x works in department y. DeptSupervisorld is the id of the physician (not necessarily physician x) who in managing department y. Treatld is a number that represents the type of treatment the physician can do TreatDesc and TreatCost are Treatment description and treatment cost Each patient is assigned one doctor, but a doctor can have many patients There may be more than one patient in a room but each patient is kept in one room only Question #1 Consider the following data. Arrows show the functional dependency. Product Item Id Num Quantity Item Used Product Receipt Quantity Sales Description Description Number Sold Date The arrows in this question indicated the determination of two attributes. For example, the arrow that goes ProductID to Product Description indicates that ProductID determines the Product Description. This in turn means that ProductId can be considered as primary key for Product Description. a) Write the tables b) Place the tables in 3rd normal form (if necessary) c) Create ERD based on the normalized tables DATA ITEM (COLUMN NAME) d) Write a script to create a database. Your script should create the tables and ensures that all constraints are set properly. Here is some information to create your tables ProductId Item Num Quantity Used ItemDescription Product Description ReceiptNumber Quantity Sold SalesDate TYPE Numeric - Integer Numeric - Integer Numeric - Integer Character - Up to 200 Character - Up to 200 Numeric Integer Numeric Integer Date RESTRICTION Not null >0 Not null >= 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Following is the required ERD for the given Schema Relationships used 1 Employee DEPT 11 There can b... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!