D
daniellchiu
I got a monthly table
TABLEJAN
id quantity type
1 1 c
2 1 c
3 2 d
4 2 d
TABLEFEB
id quantity type
1 2 e
2 2 e
3 3 d
4 3 d
how can i make a query to become like this
month SUM(e) SUM(d) SUM(c)
JAN 0 4 2
FEB 4 6 0
thx
TABLEJAN
id quantity type
1 1 c
2 1 c
3 2 d
4 2 d
TABLEFEB
id quantity type
1 2 e
2 2 e
3 3 d
4 3 d
how can i make a query to become like this
month SUM(e) SUM(d) SUM(c)
JAN 0 4 2
FEB 4 6 0
thx