Skip to content
Advertisement

How to split data in SQL

I have the following code:

Used Table names: WIPtransaction, WIPtransactiontype, Feeearner

I want to display two more columns at the end of the output, namely: Invoiced and Uninvoiced. The “Invoicenumber” field in the “WIPtransaction” database will be tested for this. If the “Invoicenumber” is NULL – the transaction amount will be added to a sum in the uninvoiced column and if “Invoicenumber” contains a number – the transaction amount will be added to a sum in the invoiced column.

What is the code that I would need to write and where would it be placed?

Advertisement

Answer

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement