Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: SQL Server
Expertise: Beginner
Jul 16, 1999



Application Security Testing: An Integral Part of DevOps

Establish Referential Integrity

How do you Establish Referential Integrity between 2 tables so that when a ticket is deleted from the TICKETS table all associated information in the customer5 table will be deleted?

Forgive me if I missed the boat, but it seems that you want to delete the parent records on deletion of a child record. I think this is unusual, in that the problem is usually stated as retaining history in the absence of parents. If this is indeed what you intend, you can find the ticket.customer_id in the deleted table and use it to delete the customer record with that id as its primary key, but I wouldn't recommend doing that.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date