I have five tables and if i delete a record in gridview i need to delete all the records rleated to that using sql how can i do this.In these five tables tbl4 is the main table and that id in tbl4 is passed to all the remaining four tables and if i delete a record in gridview all the data related to id 123 should be deleted in remaining four tables how can i do this
select * from Tbl1 where PName='123'
select * from Tbl2 where PName='123'
select * from Tbl3 where PName='123'
select * from Tbl4 where ID='123'
select * from Tbl5 where PName='123'