michelleqw
Programmer
Dear sql users,
We want to group instead of rows now into colums.
Example
Tabel1:
income tax
100 0
200 1
10 1
100 0
12 0
The sql statement: “select tax, sum(income) as srt from tabel1 group by tax” gives:
srt income
0 212
1 210
We try to get:
tax-0 tax-1
212 210
Is there any possibility to get these colums? If yes can someone give us the sql statement or other advises?
Nice regards,
Michelle.
We want to group instead of rows now into colums.
Example
Tabel1:
income tax
100 0
200 1
10 1
100 0
12 0
The sql statement: “select tax, sum(income) as srt from tabel1 group by tax” gives:
srt income
0 212
1 210
We try to get:
tax-0 tax-1
212 210
Is there any possibility to get these colums? If yes can someone give us the sql statement or other advises?
Nice regards,
Michelle.