I have 2 tables that store different data.
Order(Order_ID, Customer_ID, Date)
Order_Item(Order_ID, Prod_ID, colour, size, quantity)
One Order have(hopefully) several Order_Items
so a normal way could be
Order(007, 123, 2003-06-08)
Order_Item(007, A12, red, large, 4)
Order_Item(007, C32, blue, medium, 2)
Order_Item(007, S12, green, small, 1)
I just need to make sure that the Order_Item will be the same in both tables. And it will be if noone manages to insert sth at the same time, that's why I need to either lock it or make sure the both queries are executed or none of them....or maybe an even better way..??