AUC_HDR_LN_SCR(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.OPRID_ENTERED_BY , D.CURRENCY_CD , D.RESP_CURRENCY_CD , D.AUC_BID_VERSION , D.AUC_BID_STATUS , D.BID_CNTR_ACTION , (CASE SUM(C.WEIGHTING) WHEN 0 THEN (CASE F.WEIGHTING WHEN 100 THEN 0 ELSE %Round(%decdiv(SUM(%decmult(A.BID_SCORE, B.WEIGHTING)), %decmult(COUNT(DISTINCT E.LINE_NBR), 100)) , 6) END) ELSE %Round(SUM(%DecDiv(%DecMult(%DecMult(A.BID_SCORE, B.WEIGHTING), C.WEIGHTING),10000)), 6) END) , SUM(CASE B.PRICE_FLG WHEN 'Y' THEN (CASE WHEN (C.AUC_BIDDER_PRC_BRK = 'Y' OR C.AUC_USER_PRC_BRK = 'Y') AND E.BID_PBK_RESP_TYPE <> 'N' THEN G.AUC_HDR_PRICE ELSE %DecMult(A.BID_RESP_QTY, E.BID_QTY) END) ELSE 0 END) , %Round(SUM(A.BID_FCTR_COST) , 2) , %Round(SUM(E.BID_PBK_BASE_QTY) , 2) , D.RESP_DTTM_POST , 'N' FROM PS_RESP_LN_FACTOR A INNER JOIN PS_AUC_HDR F ON 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 INNER JOIN PS_RESP_HDR D ON 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 INNER JOIN PS_AUC_LN_BID_FCTR B ON 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.LINE_NBR = A.LINE_NBR AND B.BID_FACTOR_NBR = A.BID_FACTOR_NBR AND B.SETID = A.SETID AND B.BID_FACTOR_CD = A.BID_FACTOR_CD AND B.BID_FACTOR_TYPE = A.BID_FACTOR_TYPE INNER JOIN PS_AUC_LINE C ON C.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.AUC_ID = A.AUC_ID AND C.AUC_ROUND = A.AUC_ROUND AND C.AUC_VERSION = B.AUC_VERSION AND C.LINE_NBR = B.LINE_NBR INNER JOIN PS_RESP_LN E ON E.BUSINESS_UNIT = A.BUSINESS_UNIT AND E.AUC_ID = A.AUC_ID AND E.AUC_ROUND = A.AUC_ROUND AND E.AUC_VERSION = A.AUC_VERSION AND E.BIDNUM = A.BIDNUM AND E.BIDDER_SETID = A.BIDDER_SETID AND E.BIDDER_ID = A.BIDDER_ID AND E.BIDDER_TYPE = A.BIDDER_TYPE AND E.BIDDER_LOC = A.BIDDER_LOC AND E.LINE_NBR = A.LINE_NBR LEFT OUTER JOIN PS_AUC_AWSUM_PRBRK G ON G.BUSINESS_UNIT = C.BUSINESS_UNIT AND G.AUC_ID = E.AUC_ID AND G.AUC_ROUND = E.AUC_ROUND AND G.AUC_VERSION = E.AUC_VERSION AND G.BIDDER_SETID = E.BIDDER_SETID AND G.BIDDER_ID = E.BIDDER_ID AND G.BIDDER_TYPE = E.BIDDER_TYPE AND G.BIDDER_LOC = E.BIDDER_LOC AND G.BIDNUM = E.BIDNUM AND G.LINE_NBR = E.LINE_NBR WHERE (D.AUC_BID_STATUS = 'P' OR D.AUC_BID_STATUS = 'D' OR D.AUC_BID_STATUS = 'W') AND E.AUC_LINE_TYPE = 'L' 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.OPRID_ENTERED_BY, D.CURRENCY_CD, D.RESP_CURRENCY_CD , D.AUC_BID_VERSION, D.AUC_BID_STATUS, D.BID_CNTR_ACTION, D.RESP_DTTM_POST, F.WEIGHTING |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | Business Unit | |
2 | Character(10) | VARCHAR2(10) NOT NULL |
Event ID
Default Value: NEXT |
|
3 | Number(5,0) | INTEGER NOT NULL |
Event Round
Default Value: 1 |
|
4 | Number(5,0) | INTEGER NOT NULL |
Event Version
Default Value: 1 |
|
5 | Signed Number(6,0) | DECIMAL(5) NOT NULL | Bid ID | |
6 | Character(5) | VARCHAR2(5) NOT NULL | Bidder Setid | |
7 | Character(15) | VARCHAR2(15) NOT NULL | Bidder ID | |
8 | Character(1) | VARCHAR2(1) NOT NULL |
Bidder Type
B=Bidder C=Customer P=Public U=Uploaded V=Supplier |
|
9 | 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 | 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 |
13 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
14 | RESP_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
15 | AUC_BID_VERSION | Number(5,0) | INTEGER NOT NULL | Event Bid Version |
16 | AUC_BID_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Bid Status
D=Disqualified P=Posted S=Saved W=Disallowed X=Cancelled |
17 | BID_CNTR_ACTION | Character(1) | VARCHAR2(1) NOT NULL |
Bid Counter Action
A=Accept C=Counter W=Withdrawal |
18 | AUC_LN_BF_SCR_TTL | Number(11,7) | DECIMAL(10,7) NOT NULL | Total Line Bid Factor Score |
19 | AUC_HDR_PRICE | Number(19,6) | DECIMAL(18,6) NOT NULL | Event Price |
20 | AUC_AWD_BID_CST | Signed Number(16,2) | DECIMAL(14,2) NOT NULL | Total Bid Cost |
21 | BID_PBK_BASE_QTY | Number(16,4) | DECIMAL(15,4) NOT NULL | Price Brake Base Qty |
22 | RESP_DTTM_POST | DateTime(26) | TIMESTAMP | Response Date Time |
23 | IS_NOBID | Character(1) | VARCHAR2(1) NOT NULL | No Bid |