I have a database table which holds a patient ID, a date and a medication level. here is a section of it:
Patient ID Date Step
1 11/3/00 2
1 30/3/00 5
1 25/4/00 2
2 13/3/00 2
2 01/5/00 2
I have two queries I must write on this table,
Query 1: The number of patients whose medication (step) has changed. (In this example it would show patient 1
Query Two: How many patients have had another appointment within four weeks. (Again patient one in this example)
Does anyone know how I can do these queires, thanks in advance
Patient ID Date Step
1 11/3/00 2
1 30/3/00 5
1 25/4/00 2
2 13/3/00 2
2 01/5/00 2
I have two queries I must write on this table,
Query 1: The number of patients whose medication (step) has changed. (In this example it would show patient 1
Query Two: How many patients have had another appointment within four weeks. (Again patient one in this example)
Does anyone know how I can do these queires, thanks in advance