Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Sunday, July 16, 2017

How to Calculate Difference between 2 queries Columns in union ALL

SQLServerCentral » Latest topics
How to Calculate Difference between 2 queries Columns in union ALL
Hello Good Afternoon,

Can you please help me with below query how to get the another column in the output as (First_Bal - S_Balance) ?

[code language="sql"]
SELECT
COL1, Col2, Col3, First_Bal, First_Qty, S_Balance
--- New Co

No comments: