| Please Make Query [message #574032] |
Sat, 05 January 2013 13:42  |
qanita786
Messages: 128 Registered: May 2007 Location: PAKISTAN
|
Senior Member |
|
|
Dear Sir I Have Four Tables
1) Sal_master
structure is voc_no varchar2(7),voc_date date
2) sal_detail
structure is voc_no varchar2(7),item_code varchar2(10),quantity number(10,2)
3). delivery_master
structure is voc_no varchar2(7),voc_date date;
4) delivery_detail
structure is voc_no varchar2(7),item_code varchar2(10),quantity number(10,2)
Sir i want to compare these four tables i have insert 10 rows in sal_master and sal_detail tables and 5 transaction in delivery tables how to compares 10 records of sal_master,detail with delivery_master and detail if not exist in delivery_master and detail tables then display only sal_master,detail records for example
Voc_no Sale Qty Deliver Qty Remaing Qty
S000075 10 5 5 if data not found from delivery master and detail then answer must be
S000075 10 0 10
Please guide me with query examples
Thanks in Advance
|
|
|
|
|
|
|
|