Hi all
I have a problem.
i'm trying to create a view that will basically look like a pivot table but it can't be a pivot table because the system reading it will not understand it.
I have 1 table full of data
All i need to do is
SELECT SUM(tranbase)as fund_56
FROM table
where fund_code ='56'
group by pay_code
SELECT SUM(tranbase)as fund_07
FROM table
where fund_code ='07'
group by pay_code
about 50 times but I need them to go across in columns eg
fund_56 fund_07
12213 234234
2423 345534
etc
Can anyone help me
Cheers
Paul
I have a problem.
i'm trying to create a view that will basically look like a pivot table but it can't be a pivot table because the system reading it will not understand it.
I have 1 table full of data
All i need to do is
SELECT SUM(tranbase)as fund_56
FROM table
where fund_code ='56'
group by pay_code
SELECT SUM(tranbase)as fund_07
FROM table
where fund_code ='07'
group by pay_code
about 50 times but I need them to go across in columns eg
fund_56 fund_07
12213 234234
2423 345534
etc
Can anyone help me
Cheers
Paul