I have a attendance table like this:
Student_id attendance_date status
----------- ---------------- ---------
1 1/8/2014 Present
2 1/8/2015 Absent
1 2/8/2014 Present
2 2/8/2015 Present
1 3/8/2014 Present
2 3/8/2015 Present
Expected output is this:
Student_ id 1/8/2014 2/8/2014 3/8/2014
------------- --------- --------- ----------
1 present present present
2 absent present present
Please help me to get a expected output.....