The database used for this question is based upon the following relational schema.Relational Algebra and SQL The database used for this question is based upon the following relational schema that represents a very simplified medical billing database (Primary Key, Foreign Key):

Question 1 (50 Marks) â?? Relational Algebra and SQL The database used for this question is based upon the following relational schema that represents a very simplified medical billing database (Primary Key, Foreign Key): Patient (PatientID, FamilyName, GivenName, Address, Suburb, State, PostCode) Doctor (ProviderNo, Name) Item (ItemNo, Description, Fee) Account (AccountNo, ProviderNo, PatientID, Date) AccountLine (AccountNo, ItemNo) The Patient relation contains data about patients treated at a typical medical surgery. The details of the Doctors are contained in the Doctor relation.

Document Preview:
Question 1 (50 Marks) â?? Relational Algebra and SQL The database used for this question is based upon the following relational schema that represents a very simplified medical billing database (Primary Key, Foreign Key): Patient (PatientID, FamilyName, GivenName, Address, Suburb, State, PostCode) Doctor (ProviderNo, Name) Item (ItemNo, Description, Fee) Account (AccountNo, ProviderNo, PatientID, Date) AccountLine (AccountNo, ItemNo) The Patient relation contains data about patients treated at a typical medical surgery. The details of the Doctors are contained in the Doctor relation. The ProviderNo attribute is a unique code allocated to each registered medical practitioner in Australia. The Item relation contains the details of treatment items, including the ItemNo which is a unique code allocated to each treatment item. When a patient visits the Doctor, an Account is created. A Patient can only be treated by one Doctor on a particular visit. An Account can have several lines, each of which list the item number of the treatment provided. A Patient can have more than one account for a day. Provide Relational Algebra (NOT SQL) queries for the following (20 marks): NB: You should present your relational algebra queries as per those in the lecture examples. You may use intermediate relations if you wish. Each query is worth 2 marks. Family name of all patients Family name of all patients who live in Western Australia Address of any patients whose Family name is Smith and who live in Western Australia Family name of all patients who live in Western Australia or South Australia Family name of all patients treated by Dr Brian Family name of all patients treated by Dr Brian but not Dr Barbara Family name of all patients treated by Dr Brian and Dr Barbara The dates on which Dr Brian has treated Aliza Wiseman Item Description and the treatment date of all treatments for any patient named Aliza Wiseman Family name of any patient who has at some stage…


 

PLACE THIS ORDER OR A SIMILAR ORDER WITH NURSING TERM PAPERS TODAY AND GET AN AMAZING DISCOUNT

get-your-custom-paper

For order inquiries     +1 (408) 800 3377

Open chat
You can now contact our live agent via Whatsapp! via +1 408 800-3377

You will get plagiarism free custom written paper ready for submission to your Blackboard.