i have the following relational database model
Both authors and books table has one to many relationship with book_author table.Also they have cascade delete update relationship.If i delete any entry in authors or books table ,corresponding data from book_author table also gets deleted.But the problem is if i delete an author ,there should be no book in books table in books table.How i can make it so that if i delete an author ,corresponding books of that author will also gets deleted from Books table and vise versa.

