A
Angus Comber
Hello
I have two tables connected by a unique key in primary table - which is
foreign key in subsidiary table. Main table called Site with unique SiteID
and other table is Reminders with a foreign key called SiteID. There may be
multiple rows in Reminders with same SiteID. So one to Many relationship.
I have some rows in Reminders which are no longer valid now because they
contain SiteID's - for sites that have been deleted.
What SQL would I run to remove all rows in Reminders which have no
associated SiteID in the site table?
Angus
I have two tables connected by a unique key in primary table - which is
foreign key in subsidiary table. Main table called Site with unique SiteID
and other table is Reminders with a foreign key called SiteID. There may be
multiple rows in Reminders with same SiteID. So one to Many relationship.
I have some rows in Reminders which are no longer valid now because they
contain SiteID's - for sites that have been deleted.
What SQL would I run to remove all rows in Reminders which have no
associated SiteID in the site table?
Angus