R
R Tanner
Hi,
I have the following code which would run beautifully in SSMS but I
can't get it to run in Access 2007. What do I need to change to make
it run?
SELECT *
FROM
(
SELECT (Employee_List.LName & ", " & Employee_List.FName) AS
["Employee"],
SUM(Transactions.Amount) as "Pips Received"
FROM (Employee_List INNER JOIN Transactions ON Transactions.ReceiverId
= Employee_List.ID)
GROUP BY (Employee_List.LName & ", " & Employee_List.FName)
) t1
JOIN
(
SELECT (Employee_List.LName & ", " & Employee_List.FName) AS
["Employee"],
SUM(Expenses.Amount) as "Expenses"
FROM (Employee_List INNER JOIN Expenses ON Expenses.EmployeeID =
Employee_List.ID)
GROUP BY (Employee_List.LName & ", " & Employee_List.FName)) t2
ON t1.Employee = t2.Employee
I have the following code which would run beautifully in SSMS but I
can't get it to run in Access 2007. What do I need to change to make
it run?
SELECT *
FROM
(
SELECT (Employee_List.LName & ", " & Employee_List.FName) AS
["Employee"],
SUM(Transactions.Amount) as "Pips Received"
FROM (Employee_List INNER JOIN Transactions ON Transactions.ReceiverId
= Employee_List.ID)
GROUP BY (Employee_List.LName & ", " & Employee_List.FName)
) t1
JOIN
(
SELECT (Employee_List.LName & ", " & Employee_List.FName) AS
["Employee"],
SUM(Expenses.Amount) as "Expenses"
FROM (Employee_List INNER JOIN Expenses ON Expenses.EmployeeID =
Employee_List.ID)
GROUP BY (Employee_List.LName & ", " & Employee_List.FName)) t2
ON t1.Employee = t2.Employee