Question: I am having trouble translating the SQL to relational algebra. Can someone assist with writing the actual symbols ? We have the information about patients

 I am having trouble translating the SQL to relational algebra. Cansomeone assist with writing the actual symbols? We have the information about

I am having trouble translating the SQL to relational algebra. Can someone assist with writing the actual symbols?

We have the information about patients in a database with the following schema Prescription (PatientID, Drug, Start, End, Physician, Diagnosis, and NewSymptom PatientID, Diagnosis, Start, End) Some Clarifications 1. In Prescription, Start is the date the patient started taking the drug, andEnd is the last date the patient took the drug. To simplify the query, assume that no dates are missing. Physician is the physician who prescribed the drug, and Diagnosis is the condition for which the physician prescribed it. (Assume that, although a drug may be prescribed for multiple conditions, when a physician prescribes a drug for a patient (s)he prescribes it because of a single condition.) 2. NewSymptom stores problems that patients have developed that apparently might be side effects of medications. Diagnosis is the physician's description of the apparent side effect. Start and End are the starting and ending dates of the symptom. Again, assume End is never blank. 3. Assume dates are stored as integers, so that larger integers correspond to later dates. (One commonway is what's called a Julian Date [nothing to do with Julius Caesar where we might store today's date as 2012094 today is the 94th day of 2012. But all you need care about is that the dates are in the right order.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!