I ran a seperate query that displayed all rows in table2. the table2.id is duplicated, wheras table.id is unique. for example:
table1.id table2.id
1 1
2 1
3 2
4 3
my statement, should return id#4 as not being in table2.
with all the different statements given to me, either I get 1 result, or none, or all from table2.
I ran this same query in Crystal Reports, and using an option to have Crystal remove the records where there is not a value in table2, where there is in table1, I get the proper results. As soon as I try and have the server try and do this, it gets messy. Crystal reports actually brings in all records from each table, then based on my requriement, removes the records.
Maybe I can get PHP to do this? This must be an ODBC driver issue, because all the logic in the statements seem correct.