Brug Grupper efter over et vikarbord med særskilt patient og læge
select Patient, count(*)
from (
select distinct Bookings.PatientID as Patient ,DoctorID as Doctors
from Bookings ) as t
Group by Patient;
Brug Grupper efter over et vikarbord med særskilt patient og læge
select Patient, count(*)
from (
select distinct Bookings.PatientID as Patient ,DoctorID as Doctors
from Bookings ) as t
Group by Patient;