I have a table names Attendance Master
id ||name ||attn_hours || attn_date
---------------------------------------------
142 || abc || 2.00 || 2013-01-17 00:00:00.000
142 || abc || 3.00 || 2013-01-18 00:00:00.000
143 || pqr || 3.00 || 2013-01-17 00:00:00.000
143 || pqr || 2.00 || 2013-01-18 00:00:00.000
I want distinct names and attendance hours in multiple column with column names as attn_date like following
id ||name ||2013-01-17||2013-01-18
---------------------------------
142 || abc || 2.00 || 3.00
143 || pqr || 3.00 || 2.00
Please help
Thanks in advance.
{ }) on the editor toolbar to nicely format and syntax highlight it! That way, you don't need any messy<br/>tags, either!