hi guys, suppose i have a SQL statement like
select name, class, marks
from studentresult
where subject="maths"
the resultset has 3 columns something like
bob 5n6 90
peter 5n6 55
mary 5n9 99
... ... ..
now, if i wanna split the resultset to 3 separate resultsets like
bob
peter
mary
...
5n6
5n6
5n9
...
90
55
99
..
is it possible?
or will it be easier if i modify the original sql statement to 3 sql statments? if i need to use the 2nd option, it will not be manual rewriting the sql, i'll need a method to rewrite it
any kind soul pls advise
select name, class, marks
from studentresult
where subject="maths"
the resultset has 3 columns something like
bob 5n6 90
peter 5n6 55
mary 5n9 99
... ... ..
now, if i wanna split the resultset to 3 separate resultsets like
bob
peter
mary
...
5n6
5n6
5n9
...
90
55
99
..
is it possible?
or will it be easier if i modify the original sql statement to 3 sql statments? if i need to use the 2nd option, it will not be manual rewriting the sql, i'll need a method to rewrite it
any kind soul pls advise