Hi Friends
I am trying to achieve a very common business rule, i.e.:
I have following tables:
1) PO_HDR - PO_ID PK
2) PO_DTL - PO_ID FK
3) GRN_HDR - PO_ID FK FROM PO_HDR
4) GRN_DTL - GRN_ID FK
My requirement is to list only those PO's where the po_dtl qty is less than the grn_dtl qty.
Means in simple terms the qty received should not be greater than qty ordered.
I want the results in one single query...
Please help.
Oracle 9i on Windows 2000.
Gazal
I am trying to achieve a very common business rule, i.e.:
I have following tables:
1) PO_HDR - PO_ID PK
2) PO_DTL - PO_ID FK
3) GRN_HDR - PO_ID FK FROM PO_HDR
4) GRN_DTL - GRN_ID FK
My requirement is to list only those PO's where the po_dtl qty is less than the grn_dtl qty.
Means in simple terms the qty received should not be greater than qty ordered.
I want the results in one single query...
Please help.
Oracle 9i on Windows 2000.
Gazal