I have two tables joined thru the ID field
TableA
======
ID, fldA, fldB
TableB
=====
BID, fldC, fldD
I am wanting to list all records from TableA and those fields from TableB where fldD = X.
My current SQL, which works fine, to print all records is:
SELECT TableA.fldA, TableA.fldB TableB.fldC TableB.fldD FROM TableA LEFT JOIN TableB ON TableA.ID = TableB.BID
I am having trouble finding the solution when I use selection criteria. I expected the SQL to look like:
SELECT TableA.fldA, TableA.fldB TableB.fldC TableB.fldD FROM TableA LEFT JOIN TableB ON TableA.ID = TableB.BID WHERE TableB.fldD = "X"
This only shows TableA records where TableB.fldD = "X"
Other than my explanation, I am sure this is fairly simple.
Can anyone point me in the right direction
Thanks..
TableA
======
ID, fldA, fldB
TableB
=====
BID, fldC, fldD
I am wanting to list all records from TableA and those fields from TableB where fldD = X.
My current SQL, which works fine, to print all records is:
SELECT TableA.fldA, TableA.fldB TableB.fldC TableB.fldD FROM TableA LEFT JOIN TableB ON TableA.ID = TableB.BID
I am having trouble finding the solution when I use selection criteria. I expected the SQL to look like:
SELECT TableA.fldA, TableA.fldB TableB.fldC TableB.fldD FROM TableA LEFT JOIN TableB ON TableA.ID = TableB.BID WHERE TableB.fldD = "X"
This only shows TableA records where TableB.fldD = "X"
Other than my explanation, I am sure this is fairly simple.
Can anyone point me in the right direction
Thanks..