palani_chamy
New member
- Local time
- Today, 10:03
- Joined
- Jul 20, 2011
- Messages
- 2
i have two tables namely table1 and table2 with fields of villcode,sncode,sdcode (both tables having same fields). table1 has 1690 records and table2 has 1624 records. 1690 records of table1 includes the 1624 records of table2. now i want to filter those records found excess in table1 (ie., 66 records) by using SELECT query. Taruz of this forum suggested the following query. but it is not working.
select *
from table1
where villcode & sncode & sdcode
not in (
select (villcode & sncode & sdcode) from table2)
anybody can help me to solve this.
select *
from table1
where villcode & sncode & sdcode
not in (
select (villcode & sncode & sdcode) from table2)
anybody can help me to solve this.