i'm pretty knew at MySQL. i'm using PHP to access the database.
Here's my problem!:
i have two databases...let's call them DB and REG).
- DB contains ALL my records with a unique ID.
- REG contains ONLY the records who have Registered and can be linked to DB with the ID key.
i want to write the following query:
*** Select ALL records from DB that are NOT in REG. ***
i can do it by querying each ID from DB and searching for it on REG, but i was wondering if there's a one shot statement?!
Thanx!!!
Here's my problem!:
i have two databases...let's call them DB and REG).
- DB contains ALL my records with a unique ID.
- REG contains ONLY the records who have Registered and can be linked to DB with the ID key.
i want to write the following query:
*** Select ALL records from DB that are NOT in REG. ***
i can do it by querying each ID from DB and searching for it on REG, but i was wondering if there's a one shot statement?!
Thanx!!!