hi.
let say i have 3 tables. i want to select records from table1 which quantity is more than records' quantity either in table2 or table3.
Ex. 3 tables have the same key columns: Code.
if Code is in table2, then it will retrieve the data from table2. Else, it will retrieve data from table3.
is it possible to put all these in one query?
let say i have 3 tables. i want to select records from table1 which quantity is more than records' quantity either in table2 or table3.
Ex. 3 tables have the same key columns: Code.
if Code is in table2, then it will retrieve the data from table2. Else, it will retrieve data from table3.
is it possible to put all these in one query?