P
PeteCresswell
When I Inner Join to a subquery, records are returned from it.
But when I Left Join to the same query, there are no hits on the join.
Here is the common query that is joined to in both cases:
-----------------------------------------------------------------------------------
SELECT tblTradingAccountStrategy.TradingAccountID, First
(tblTradingAccountStrategy.StrategyID) AS FirstOfStrategyID
FROM tblTradingAccountStrategy
GROUP BY tblTradingAccountStrategy.TradingAccountID;
-----------------------------------------------------------------------------------
Here is the join that returns records:
-----------------------------------------------------------------------------------
SELECT tblTradingAccountStrategy.TradingAccountID, First
(tblTradingAccountStrategy.StrategyID) AS FirstOfStrategyID
FROM tblTradingAccountStrategy
GROUP BY tblTradingAccountStrategy.TradingAccountID;
-----------------------------------------------------------------------------------
Here is the join that *seems* like it should return records,
but does not:
-----------------------------------------------------------------------------------
SELECT tblTradingAccount.TradingAccountID,
qryAdmin_TradingAccount_Load_TradingAccounts_Strategy.FirstOfStrategyID
FROM tblTradingAccount LEFT JOIN
qryAdmin_TradingAccount_Load_TradingAccounts_Strategy ON
tblTradingAccount.TradingAccountID =
qryAdmin_TradingAccount_Load_TradingAccounts_Strategy.TradingAccountID;
-----------------------------------------------------------------------------------
This smells of Yours Truly doing something really simple/dumb, but for
the life of me I cannot see what.
??
But when I Left Join to the same query, there are no hits on the join.
Here is the common query that is joined to in both cases:
-----------------------------------------------------------------------------------
SELECT tblTradingAccountStrategy.TradingAccountID, First
(tblTradingAccountStrategy.StrategyID) AS FirstOfStrategyID
FROM tblTradingAccountStrategy
GROUP BY tblTradingAccountStrategy.TradingAccountID;
-----------------------------------------------------------------------------------
Here is the join that returns records:
-----------------------------------------------------------------------------------
SELECT tblTradingAccountStrategy.TradingAccountID, First
(tblTradingAccountStrategy.StrategyID) AS FirstOfStrategyID
FROM tblTradingAccountStrategy
GROUP BY tblTradingAccountStrategy.TradingAccountID;
-----------------------------------------------------------------------------------
Here is the join that *seems* like it should return records,
but does not:
-----------------------------------------------------------------------------------
SELECT tblTradingAccount.TradingAccountID,
qryAdmin_TradingAccount_Load_TradingAccounts_Strategy.FirstOfStrategyID
FROM tblTradingAccount LEFT JOIN
qryAdmin_TradingAccount_Load_TradingAccounts_Strategy ON
tblTradingAccount.TradingAccountID =
qryAdmin_TradingAccount_Load_TradingAccounts_Strategy.TradingAccountID;
-----------------------------------------------------------------------------------
This smells of Yours Truly doing something really simple/dumb, but for
the life of me I cannot see what.
??