By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
8 rows affected
| InvoiceID | LineType | InvoiceNumber | Amount | IGST | CGST |
|---|---|---|---|---|---|
| 569052 | Non-Catalog Item | 1 | 13500 | 1341 | null |
| 569052 | Catalog Item | 3 | 670700 | null | 1000 |
| 569052 | Non-Catalog Item | 5 | 2000 | 100 | null |
| 569052 | Non-Catalog Item | 7 | 1000 | null | 300 |
Warning: Null value is eliminated by an aggregate or other SET operation.