Posted by Pawe³ Zalewski on 12/08/06 18:09
Guys help needed,
I have a table X
DocNo | InvNo | VAT | Anount
----------------------------------------
1 | a1 | 7 | 100
1 | a1 | 22 | 200
2 | a2 | 0 | 50
3 | a3 | 22 | 300
3 | a3 | 7 | 10
3 | a3 | 0 | 30
I need to create a view which will look like this
DocNo | InvNo | VAT7 | Am7 | VAT22 | Am22 | VAT0 | Am0
-------------------------------------------------------------------------
1 | a1 | 7 | 100 | 22 | 200 | 0
| 0
2 | a2 | 0 | 0 | 0 | 0 |
0 | 50
3 | a3 | 7 | 10 | 22 | 300 | 0
| 30
Thanks
Paul
[Back to original message]
|