If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Obtaining the correct results from a two table query
I have two tables say A and B, what I am trying to achieve with the query is
just to display records that have the received field ticked in table A and the colour field in table B not containing “Y”. How do I modify the code below to achieve this? SELECT A_Date, A.Received, A.ID, B. Colour FROM A LEFT JOIN B ON DDP_A.Main = B.Main WHERE (((A.Received)= -1) AND ((B.Colour “Y”)); |
Thread Tools | |
Display Modes | |
|
|