I have table named Schedule which has fields named TeacherName and ClassTakenDate.The values in the table are as shown below:
TeacherName ClassTakenDate
Anish 2011-10-01
Anish 2011-10-01
John 2011-10-01
John 2011-10-02
I want result like this :
TeacherName NoOfDays
Anish 1
John 2
how we can do this?
1 Answer