Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Relational Model Employee ID, FName, LName, Salary, jobTitle, officeNum, emp

ID: 3798113 • Letter: T

Question

The Relational Model Employee ID, FName, LName, Salary, jobTitle, officeNum, empRank, supervisorID) That is one design, other designs for the ISA relationship are possible... Equipment Type (ID, Desc, model, instructions) Equipment (Serialft, TypeID, PurchaseYear, Lastlnspection, roomNum) Room (Num, occupied flag) RoomService (roomNum service Room Access (roomNum EmplD) Patient (SSN, FirstName, LastName, Address, TelNum) Doctor (LD, gender, specialty, LastName, FirstName) Admission (Num, AdmissionDate, LeaveDate, TotalPayment, InsurancePayment, Patient SSN, FutureVisit) Examine (Doctor ID, AdmissionNum, comment) Stayln(AdmissionNum, RoomNum, startDate, endDate)

Explanation / Answer

1) create view CriticalCases as select patient_SSN,FirstName,LastName,(select count(service) >=2 as numberofAdmissionsToICU from RoomService r where service='ICU' AND r.roomNum=(select s.roomNum from StayIn s where s.AdmissionNum = a.Num))) from Admission a, Patient p;

2)create view DoctorsLoad as select ID as DoctorID,gender,Load from Doctor;

insert into DoctorsLoad(Load) values('OverLoaded') where (select count(E.AdmissionNum)>10 from Examine where ID=E.DoctorID);

insert into DoctorsLoad(Load) values('UnderLoaded') where (select count(E.AdmissionNum)<=10 from Examine where ID=E.DoctorID);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote