How do I go about writing the relational algebra for this SQL query?
Select p.name, p.ward, m.name, p.quantity, f.frequency
From patient, medicine, prescription
Where frequency = "3perday" AND p.end-date="08-06-2010" AND canceled = "Y".
How do I go about writing the relational algebra for this SQL query?
Select p.name, p.ward, m.name, p.quantity, f.frequency
From patient, medicine, prescription
Where frequency = "3perday" AND p.end-date="08-06-2010" AND canceled = "Y".
Educated guess: Maybe you write out all the p's, f's and m's to their actual meaning, i.e. patient or prescription instead of p and so on. But really don't understand what the problem is unless you tell us...