Hi All,
I've a two tables (new) and (Old) and like to compare the values the sql and output shown below
select 'TableA' , costcentre, count(costcentre) as Total Count, sum(values) as TotalAmt from TableA group by costcentre
UNION ALL
select 'TableB' , costcentre, count(costcentre) as...