I have an attendance table which contains student’s attendance date and attendance status.
Is there any way to display a summary something like this:
Student 20-09-2012 21-09-2012 22-09-2012 23-09-2012
xyz P A P P
abc P P P P
Through a SQL Server query?
I have tried with the PIVOT but it is not working because of aggregate function.
You can use
MAXas an aggregate function like so: