View Single Post
  #12 (permalink)  
Old April 8th, 2008, 11:46
DDhiren DDhiren is offline
Junior Member
 
Join Date: Oct 2007
Location: Bracknell,UK
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
DDhiren is on a distinguished road
Re: How Order Release is linked with Buy Shipment and Sell Shipment?

Here is the query (Replace RELEASE1 in the below query with your Order Release ID).

SELECT S.SHIPMENT_GID FROM SHIPMENT S, SHIPMENT_STOP_D SD, S_SHIP_UNIT_LINE SL WHERE S.SHIPMENT_GID = SD.SHIPMENT_GID AND SD.S_SHIP_UNIT_GID = SL.S_SHIP_UNIT_GID AND SL.ORDER_RELEASE_GID ='RELEASE1' AND SD.STOP_NUM = 1
Reply With Quote