I am very stressful with Sql coding. Any solution please help….
I have tables like below :
OrderedFood(**TableID,FoodID**,Qty,OrderedDate)
Invoices(**InvoiceID**,TableID,Amount)
InvoiceDetail(**InvoiceID,FoodID**,Qty,orderedDate)
I want to copy OrderedFood.TableID => Invoices.TableID. then copy OrderedFood.FoodID => InvoiceDetail.FoodID , OrderedFood.Qty => InvoiceDetail.Qty which this content a lot of rows.
How could i do it ?
Thanks in advance …
I’m afraid it is a bit hard to understand exactly what you are trying to do.
Hopefully the following SQL can help point you in the right direction