On executing the DELETE statement I keep getting the error about foreign key constraint failing. What do I do?

The error message is displayed to maintain REFERENTIAL INTEGRITY.

While deleting records from a table you need to ensure that that there is no dependent child record in any other table, values of which are dependent on the records of the current table.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.