Click here to Skip to main content
15,885,057 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i am stored attendance of student in attend table

my stored rows are..

===============================================
class |roll_no | student name  | date         | status |
A     |    1   |  aaa          | 01-01-2014   |  A     |
A     |    2   |  bbb          | 01-01-2014   |  p     |
A     |    3   |  ccc          | 01-01-2014   |  p     |
A     |    1   |  aaa          | 02-01-2014   |  A     |
A     |    2   |  bbb          | 02-01-2014   |  A     |
A     |    3   |  ccc          | 02-01-2014   |  p     |

now i want output like this

student name  | 01 | 02 | 03 | 04.........31 date
  aaa         | A  | P  | p  |  A
  bbb         | A  | A  | p  |  A
  ccc         | P  | P  | p  |  A ............ status

please help me

[edit]Code block added, Urgency deleted - OriginalGriff[/edit]
Posted
Updated 10-Feb-14 7:09am
v3
Comments
Sergey Alexandrovich Kryukov 10-Feb-14 13:09pm    
Makes no sense, no effort... The whole concept of "output" is not quite applicable; this is UI...
—SA
trivedijignesh 14-Feb-14 9:14am    
oki want output in datagrid using pivot query.
i just want to know how to make pivot ( cross tab) query.
thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900