SQL result:
id student_name class
----------------------
1 abc 1A
2 xyz 1A
3 dsk 1A
4 uij 1A
.................
.................
.................
.................
.................
up 1000 results
I want to format the 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