Hey GuysI have to create a report which shows how many times a drug was administered and the dose is multiplied by the number of times administered (i.e 20mg dose x 2 times administered = 40 mg). The dose field is derived from a table. The table used to create the report from contains details about the the PatientNo., Dose, time prescribed, time administered.The report needs to look like this:PATIENT NO. | Number of Times Administred | DOSEPatient A 2 40Patient B 10 200The parameters of the report is a startdate and an enddate.I need help with SQL code to multiply the dose by times administered and identify how many times each patient no. has had the drug and to multiply that to get the value shown in the dose field.
↧