I wrote a query for recording totals from columns from multiple tables however I could only get the data into rows, how could I get these into columns?
Select Sum(Price) AS [Totals]
From Sold
Union
SELECT SUM(Total) as Down
FROM
(
SELECT Cost as Total
FROM Sold
UNION ALL
SELECT Total as Total
FROM Extras
) AS AllRowsFromT1andT2
UNION Select Sum(Valued) AS [Value]
From Sold;
Thanks for any help :)