Hi All,
I am a little stumped here.. I have a dataset with 3 tables. I am trying to do a SELECT on one table using a NOT IN or NOT EXIST statement, however it doesn't work. Can this actually be done, if so, how? or if not, is there a work around to do something like this?
Here is my code:
This is the error message I get back:
Syntax error: Missing operand after 'Email' operator.
Any help would be appreciated.
Thanks,
Gorkem.
Oxigen - Next generation business solutions
-----------------------------
Components/Tools/Forums/Software/Web Services
I am a little stumped here.. I have a dataset with 3 tables. I am trying to do a SELECT on one table using a NOT IN or NOT EXIST statement, however it doesn't work. Can this actually be done, if so, how? or if not, is there a work around to do something like this?
Here is my code:
Code:
DataRow[] dr = ds.Tables[2].Select("Email NOT IN (Select Email FROM ACTIVE) AND (Email NOT IN (Select Email FROM INACTIVE)");
This is the error message I get back:
Syntax error: Missing operand after 'Email' operator.
Any help would be appreciated.
Thanks,
Gorkem.
Oxigen - Next generation business solutions
-----------------------------
Components/Tools/Forums/Software/Web Services