Hi. I am using ASP to query an access database. So far I have used left join to join table2 to table1 where table2.fld1=table1.fld1. That works fine. The SQL is:
SELECT * FROM tbl1 LEFT JOIN tbl2 ON tbl1.fld1=tbl2.fld1
The problem I have is that I only want to use certain records from tbl2. So tbl2 needs to be left joined to tbl1 where fld1 is identical but also where tbl2.fld2 equals a certain value. Any help will be aprreciated.
Many thanks in advance. Modalman
ASCII silly question, get a silly ANSI
SELECT * FROM tbl1 LEFT JOIN tbl2 ON tbl1.fld1=tbl2.fld1
The problem I have is that I only want to use certain records from tbl2. So tbl2 needs to be left joined to tbl1 where fld1 is identical but also where tbl2.fld2 equals a certain value. Any help will be aprreciated.
Many thanks in advance. Modalman
ASCII silly question, get a silly ANSI