|
-
Sep 11th, 2006, 01:25 AM
#1
Thread Starter
Frenzied Member
Delete Related Records
I have a "Customers" table with auto id field "CustomerID". CustomerID appears as a foreign key in 4 other tables in the same database.
I only want to allow the user to delete a customer that has no related records. I could check each of the 4 tables for the existence of a particular CustomerID but is there a single SQL join statement that I could use to determine whether there are any related records throughout the 4 tables.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|