DanWallace
Registered User.
- Local time
- Today, 08:06
- Joined
- Dec 5, 2008
- Messages
- 40
Hi, I'm a little new at this stuff, so pardon me if this is a dumb question.
I have two tables, table1 and table2. Table1 has a key field ACCOUNT. Table2 has an ACCOUNT field and also an ARCODE field. So one record in Table1 could have many records in Table2. What I'm trying to do is write a SELECT statement that will select all records in Table1 that DO NOT have a matching record in Table2 with an arcode of 'WA'. Can anyone give me an idea of what this would look like? Do I need to use COUNT?
I have two tables, table1 and table2. Table1 has a key field ACCOUNT. Table2 has an ACCOUNT field and also an ARCODE field. So one record in Table1 could have many records in Table2. What I'm trying to do is write a SELECT statement that will select all records in Table1 that DO NOT have a matching record in Table2 with an arcode of 'WA'. Can anyone give me an idea of what this would look like? Do I need to use COUNT?