Below is some SQL that I created and modified from a standard .QBE query by using the "View", "Show SQL" commands from the query window.
SELECT d.Child_ID, D1."Date", d2.Goal_ID, d2."Hour", d2.Score, d."Last_Name"+", "+d."First_Name"+" - "+d.Child_ID as SName
FROM "Children.db" d, "Goals.DB" D1, "Results.db" d2
WHERE
(D1.Child_ID = d.Child_ID)
AND (D1."Date" >= '11/01/2005')
AND (D1."Date" <= '11/30/2005')
AND (d2.Goal_ID = D1.Goal_ID)
ORDER BY d.Child_ID, D1."Date", d2.Goal_ID, d2."Hour", d2.Score
My question involves the "!" inclusion operator used to turn an inner join into an outer join. Usually when I link two tables in a query I can just put the exclamation point next to the key element name that links two tables.
How do I do that in SQL? For example, if I want to include ALL rows from the "Goals.DB" (D1) table above, where do I put the inclusion operator in the actual SQL?
I've tried everything I could think of and would appreciate any help you might have.
SoT
SELECT d.Child_ID, D1."Date", d2.Goal_ID, d2."Hour", d2.Score, d."Last_Name"+", "+d."First_Name"+" - "+d.Child_ID as SName
FROM "Children.db" d, "Goals.DB" D1, "Results.db" d2
WHERE
(D1.Child_ID = d.Child_ID)
AND (D1."Date" >= '11/01/2005')
AND (D1."Date" <= '11/30/2005')
AND (d2.Goal_ID = D1.Goal_ID)
ORDER BY d.Child_ID, D1."Date", d2.Goal_ID, d2."Hour", d2.Score
My question involves the "!" inclusion operator used to turn an inner join into an outer join. Usually when I link two tables in a query I can just put the exclamation point next to the key element name that links two tables.
How do I do that in SQL? For example, if I want to include ALL rows from the "Goals.DB" (D1) table above, where do I put the inclusion operator in the actual SQL?
I've tried everything I could think of and would appreciate any help you might have.
SoT