V
VB Programmer
I was continually getting an error in Access about "ambiguous outer joins."
It recommends to "create a separate query that performs the first join and
then include that query in your SQL statement."
How do I create the same query in ADO.NET? Not sure if I can create a
separate subquery, etc...
Should I simply call the Access query? Is there another way???
FYI:
Here are the table links:
Employees (1 to many) DailyStatusSessions
Stores (1 to many) DailyStatusSessions
I want the first link to be a LEFT JOIN, but this is where I encounter the
"ambiguous out joins" error.
Here is the SQL Statement:
SELECT DISTINCT [Employees].[FirstName] & ' ' & [Employees].[LastName] AS
DisplayName
FROM Stores INNER JOIN (Employees LEFT JOIN DailyStatusSessions ON
Employees.EmployeeId = DailyStatusSessions.EmployeeId) ON Stores.StoreId =
DailyStatusSessions.StoreId;
It recommends to "create a separate query that performs the first join and
then include that query in your SQL statement."
How do I create the same query in ADO.NET? Not sure if I can create a
separate subquery, etc...
Should I simply call the Access query? Is there another way???
FYI:
Here are the table links:
Employees (1 to many) DailyStatusSessions
Stores (1 to many) DailyStatusSessions
I want the first link to be a LEFT JOIN, but this is where I encounter the
"ambiguous out joins" error.
Here is the SQL Statement:
SELECT DISTINCT [Employees].[FirstName] & ' ' & [Employees].[LastName] AS
DisplayName
FROM Stores INNER JOIN (Employees LEFT JOIN DailyStatusSessions ON
Employees.EmployeeId = DailyStatusSessions.EmployeeId) ON Stores.StoreId =
DailyStatusSessions.StoreId;