General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL - SELECT and IN Subquery
Hello,
I try to return key from table1 which has not reference in the table2.
[Table1].key
1
2
3
[Table2].key
1
SELECT table1.key FROM table1 ;
WHERE table1.key NOT IN (SELECT table2.key FROM table2)
I want to query return
[Query].key
2
3
But I got nothing.... empty sql result.... why?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only