Hi All,
I am new to sql, I have a requirement to get the patients who have had more than 3 appointments in a year.
My table
patientid appointmentid appointmentdate
1 32 03/07/2015
3 67 06/07/2015
1 23 01/09/2015
5 54 09/17/2015
6 24 01/04/2015
1 75 10/06/2016
5 36 05/12/2015
6 84 01/09/2016
My output should be
patientid appointmentid appointmentdate
1 32 03/07/2015
1 23 01/09/2015
1 75 10/06/2016
Please help me to get this.
Thanks in advance!