hi, i want to format sql result in to givin format using sql server : sql result ---->

id student_name class
1  abc          1A  
2  xyz          1A 
3  dsk          1A
4  uij          1A
................. 
.................
.................
.................
.................
up 1000 results


and i want to format data in my specific format

id1 student_name1 class1 id2 student_name2 class2 id3 student_name3 class3
1  abc             1A     2  abc            1A    3  abc          1A 
4  abc             1A     5  abc            1A    6  abc          1A
7  abc             1A    

please help ........
as soon as posible

thanks & regards
ravi kumar