SELECT C.BUSINESS_UNIT , C.AUC_ID , C.AUC_ROUND , C.AUC_VERSION , C.LINE_NBR , C.BID_FACTOR_NBR , C.BID_FACTOR_CD , MIN(C.BID_RESP_QTY ) , MAX(C.BID_RESP_QTY ) , MAX(B.BID_QTY ) FROM PS_RESP_HDR A ,PS_RESP_LN B ,PS_RESP_LN_FACTOR C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.AUC_ID = B.AUC_ID AND A.AUC_ROUND = B.AUC_ROUND AND A.AUC_VERSION = B.AUC_VERSION AND A.BIDNUM = B.BIDNUM AND A.BIDDER_SETID = B.BIDDER_SETID AND A.BIDDER_ID = B.BIDDER_ID AND A.BIDDER_TYPE = B.BIDDER_TYPE AND A.BIDDER_LOC = B.BIDDER_LOC AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.AUC_ID = C.AUC_ID AND B.AUC_ROUND = C.AUC_ROUND AND B.AUC_VERSION = C.AUC_VERSION AND B.BIDNUM = C.BIDNUM AND B.LINE_NBR = C.LINE_NBR AND B.BIDDER_SETID = C.BIDDER_SETID AND B.BIDDER_ID = C.BIDDER_ID AND B.BIDDER_TYPE = C.BIDDER_TYPE AND B.BIDDER_LOC = C.BIDDER_LOC AND A.AUC_BID_STATUS = 'P' AND C.GRP_LINE_NBR = 0 AND C.PRICE_FLG = 'Y' AND C.BID_RESP_QTY > 0 GROUP BY C.BUSINESS_UNIT , C.AUC_ID , C.AUC_ROUND , C.AUC_VERSION , C.LINE_NBR , C.BID_FACTOR_NBR , C.BID_FACTOR_CD
|