I'm trying to delete from two tables with only 1 query.
I've tried these:
Dim cq As String = "delete c.*, sb.* from Table1 c
left join Table2 sb on c.ID = sb.OrderID
where c.ID=" & txtID2.Text & ""
but I get "Record is deleted."
Dim cq As String = "delete t1,t2 from Table1 as t1
join Table2 as t2 on t2.OrderID = t1.ID
where ID=" & txtID2.Text & ""
but I get "Syntax error in from clause."
Kindly fix my code or teach me regarding this. I'd be very grateful.