I want to subtract 2 column of two different tables and update in one of the table say,
i have two tables 'main' and 'sub' both tables have a column named 'quantity' so i have to do it in this way:
update main set quantity = ((quantity of main) - (quantity of sub)) where name = pens;
Somebody help me please.
i have two tables 'main' and 'sub' both tables have a column named 'quantity' so i have to do it in this way:
update main set quantity = ((quantity of main) - (quantity of sub)) where name = pens;
Somebody help me please.
Comment