AUC_RESP_TTL_VW

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT , A.AUC_ID , A.AUC_ROUND , A.AUC_VERSION , A.BIDNUM , A.BIDDER_SETID , A.BIDDER_ID , A.BIDDER_TYPE , A.BIDDER_LOC , D.resp_bidder_name1 , D.RESP_OBO_BID , D.RESP_DTTM_POST , D.OPRID_ENTERED_BY , D.CURRENCY_CD , D.RESP_CURRENCY_CD , D.auc_bid_version , D.auc_bid_status , D.bid_cntr_action , D.bid_pbk_base_qty , %Round(SUM(%decmult(A.BID_SCORE , B.WEIGHTING )), 3) , %Round(%decmult(%decdiv(%decmult(SUM(%decmult(A.BID_SCORE, B.WEIGHTING)), F.WEIGHTING), 10000) + D.AUC_LN_BF_SCR_TTL, 100), 3) , %Round(D.AUC_LN_BF_SCR_TTL , 3) , D.AUC_HDR_PRICE , %Round(D.AUC_AWD_BID_CST + SUM(A.BID_FCTR_COST) , 2) , %Round(SUM(A.BID_FCTR_COST) , 2) , 0 , D.IS_NOBID FROM PS_RESP_HDR_FACTOR A , PS_AUC_HDR_FACTORS B , PS_AUC_HDR_LN_SCR D , PS_AUC_HDR F WHERE B.AUC_ID = A.AUC_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.AUC_ROUND = A.AUC_ROUND AND B.AUC_VERSION = A.AUC_VERSION AND B.BID_FACTOR_NBR = A.BID_FACTOR_NBR AND D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.AUC_ID = A.AUC_ID AND D.AUC_ROUND = A.AUC_ROUND AND D.AUC_VERSION = A.AUC_VERSION AND D.BIDNUM = A.BIDNUM AND D.BIDDER_SETID = A.BIDDER_SETID AND D.BIDDER_ID = A.BIDDER_ID AND D.BIDDER_TYPE = A.BIDDER_TYPE AND D.BIDDER_LOC = A.BIDDER_LOC AND F.BUSINESS_UNIT = A.BUSINESS_UNIT AND F.AUC_ID = A.AUC_ID AND F.AUC_ROUND = A.AUC_ROUND AND F.AUC_VERSION = A.AUC_VERSION AND B.BUSINESS_UNIT = D.BUSINESS_UNIT AND B.AUC_ID = D.AUC_ID AND B.AUC_ROUND = D.AUC_ROUND AND B.AUC_VERSION = D.AUC_VERSION GROUP BY A.BUSINESS_UNIT, A.AUC_ID, A.AUC_ROUND, A.AUC_VERSION, A.BIDNUM , A.BIDDER_SETID, A.BIDDER_ID, A.BIDDER_TYPE , A.BIDDER_LOC, D.RESP_BIDDER_NAME1, D.RESP_OBO_BID, D.RESP_DTTM_POST, D.OPRID_ENTERED_BY , D.CURRENCY_CD, D.RESP_CURRENCY_CD, D.auc_bid_version, D.BID_CNTR_ACTION, D.auc_bid_status, D.bid_pbk_base_qty , D.AUC_HDR_PRICE, D.AUC_AWD_BID_CST, D.AUC_LN_BF_SCR_TTL, F.WEIGHTING, D.IS_NOBID UNION SELECT A.BUSINESS_UNIT , A.AUC_ID , A.AUC_ROUND , A.AUC_VERSION , A.BIDNUM , A.BIDDER_SETID , A.BIDDER_ID , A.BIDDER_TYPE , A.BIDDER_LOC , A.RESP_BIDDER_NAME1 , A.RESP_OBO_BID , A.RESP_DTTM_POST , A.OPRID_ENTERED_BY , A.CURRENCY_CD , A.RESP_CURRENCY_CD , A.auc_bid_version , A.auc_bid_status , A.bid_cntr_action , A.bid_pbk_base_qty , 0 , %DecMult(A.AUC_LN_BF_SCR_TTL, 100) , %Round(%decmult(A.AUC_LN_BF_SCR_TTL, 100) , 3) , A.AUC_HDR_PRICE , A.AUC_AWD_BID_CST , 0 , 0 , A.is_nobid FROM PS_AUC_HDR_LN_SCR A WHERE NOT EXISTS( SELECT 'X' FROM PS_RESP_HDR_FACTOR Z WHERE Z.BUSINESS_UNIT = A.BUSINESS_UNIT AND Z.AUC_ID = A.AUC_ID AND Z.AUC_ROUND = A.AUC_ROUND AND Z.AUC_VERSION = A.AUC_VERSION) UNION SELECT A.BUSINESS_UNIT , A.AUC_ID , A.AUC_ROUND , A.AUC_VERSION , A.BIDNUM , A.BIDDER_SETID , A.BIDDER_ID , A.BIDDER_TYPE , A.BIDDER_LOC , C.RESP_BIDDER_NAME1 , C.RESP_OBO_BID , C.RESP_DTTM_POST , C.OPRID_ENTERED_BY , C.CURRENCY_CD , C.RESP_CURRENCY_CD , c.auc_bid_version , c.auc_bid_status , c.bid_cntr_action , 0 , %Round(SUM(%decmult(A.BID_SCORE, B.WEIGHTING)), 3) , 0 , 0 , 0 , %Round(SUM(A.BID_FCTR_COST) , 2) , %Round(SUM(A.BID_FCTR_COST) , 2) , 0 , 'N' FROM PS_RESP_HDR_FACTOR A , PS_AUC_HDR_FACTORS B , PS_RESP_HDR C WHERE B.AUC_ID = A.AUC_ID AND B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.AUC_ROUND = A.AUC_ROUND AND B.AUC_VERSION = A.AUC_VERSION AND B.BID_FACTOR_NBR = A.BID_FACTOR_NBR AND C.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.AUC_ID = A.AUC_ID AND C.AUC_ROUND = A.AUC_ROUND AND C.AUC_VERSION = A.AUC_VERSION AND C.BIDNUM = A.BIDNUM AND C.BIDDER_SETID = A.BIDDER_SETID AND C.BIDDER_ID = A.BIDDER_ID AND C.BIDDER_TYPE = A.BIDDER_TYPE AND C.BIDDER_LOC = A.BIDDER_LOC AND (C.AUC_BID_STATUS = 'P' OR c.auc_bid_status = 'D' OR c.auc_bid_status = 'W' ) AND NOT EXISTS( SELECT 'X' FROM PS_AUC_HDR_COST_VW D WHERE D.AUC_ID = A.AUC_ID AND D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.AUC_ROUND = A.AUC_ROUND AND D.AUC_VERSION = A.AUC_VERSION) GROUP BY A.BUSINESS_UNIT, A.AUC_ID, A.AUC_ROUND, A.AUC_VERSION, A.BIDNUM, A.BIDDER_SETID, A.BIDDER_ID, A.BIDDER_TYPE , A.BIDDER_LOC, C.RESP_BIDDER_NAME1, C.RESP_OBO_BID, C.RESP_DTTM_POST, C.OPRID_ENTERED_BY , C.CURRENCY_CD, C.RESP_CURRENCY_CD, c.auc_bid_version, c.auc_bid_status, c.bid_cntr_action

  • Parent record: AUC_HDR
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    2 AUC_ID Character(10) VARCHAR2(10) NOT NULL Event ID
    3 AUC_ROUND Number(5,0) INTEGER NOT NULL Event Round

    Default Value: 1

    4 AUC_VERSION Number(5,0) INTEGER NOT NULL Event Version

    Default Value: 1

    5 BIDNUM Signed Number(6,0) DECIMAL(5) NOT NULL Bid ID
    6 BIDDER_SETID Character(5) VARCHAR2(5) NOT NULL Bidder Setid
    7 BIDDER_ID Character(15) VARCHAR2(15) NOT NULL Bidder ID
    8 BIDDER_TYPE Character(1) VARCHAR2(1) NOT NULL Bidder Type
    B=Bidder
    C=Customer
    P=Public
    U=Uploaded
    V=Supplier
    9 BIDDER_LOC Character(10) VARCHAR2(10) NOT NULL Bidder Location
    10 RESP_BIDDER_NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    11 RESP_OBO_BID Character(1) VARCHAR2(1) NOT NULL Bid on Behalf of Flag
    12 RESP_DTTM_POST DateTime(26) TIMESTAMP Response Date Time
    13 OPRID_ENTERED_BY Character(30) VARCHAR2(30) NOT NULL Entered By 07/25/2011 MRAD 12383033 :Ensured that OPRID_ENTERED_BY is set with format type of MixedCase. 03/22/2013 GL 16482301: Switched OPRID_ENTERED_BY back to MixedCase again. Please don't change it to UpperCase!!! FYI - The alternatives to use a User ID as uppercase: 1) Create your own User ID, add comments in the Field Properties, and fill out the Owner ID 2) Use %Upper meta-SQL in SQL statements 3) Use Upper function in peoplecodes
    14 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    15 RESP_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    16 AUC_BID_VERSION Number(5,0) INTEGER NOT NULL Event Bid Version
    17 AUC_BID_STATUS Character(1) VARCHAR2(1) NOT NULL Bid Status
    D=Disqualified
    P=Posted
    S=Saved
    W=Disallowed
    X=Cancelled
    18 BID_CNTR_ACTION Character(1) VARCHAR2(1) NOT NULL Bid Counter Action
    A=Accept
    C=Counter
    W=Withdrawal
    19 BID_PBK_BASE_QTY Number(16,4) DECIMAL(15,4) NOT NULL Price Brake Base Qty
    20 AUC_HDR_BF_SCORE Number(11,7) DECIMAL(10,7) NOT NULL Header Bid Factor Score
    21 AUC_LN_BF_SCR_TTL Number(11,7) DECIMAL(10,7) NOT NULL Total Line Bid Factor Score
    22 AUC_LN_BF_SCR Number(7,3) DECIMAL(6,3) NOT NULL Line Bid Factor Score
    23 AUC_BID_AMT_TTL Number(18,5) DECIMAL(17,5) NOT NULL Total Bid Amount
    24 AUC_AWD_BID_CST Signed Number(16,2) DECIMAL(14,2) NOT NULL Total Bid Cost
    25 AUC_AWD_HDR_CST Signed Number(15,2) DECIMAL(13,2) NOT NULL Total Header Cost
    26 AUC_BIDNUM_1 Number(6,0) INTEGER NOT NULL Bid Number
    27 IS_NOBID Character(1) VARCHAR2(1) NOT NULL No Bid