AUC_BID_RE_P_VW

(SQL View)
Index Back

( SELECT DISTINCT a.auc_id ,a.auc_round ,a.auc_version , a.business_unit ,A.bidder_setid ,a.bidder_id ,a.bidder_loc ,a.bid_inv_response ,( SELECT DISTINCT 'X' FROM PS_RESP_HDR b WHERE b.auc_id=a.auc_id AND b.bidder_id= a.bidder_id AND b.auc_bid_status='P'),c.auc_company_name,q1.first_name,q1.emailid FROM ps_auc_disp_hdr a,ps_auc_bidder_hdr c,ps_AUC_CONTACT_HDR q1,ps_auc_disp_addr z WHERE c.bidder_id=a.bidder_id AND A.bidder_setid=C.SETID AND A.bidder_type='B' AND q1.setid=A.bidder_setid AND q1.bidder_id=a.bidder_id AND 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 AND q1.addr_seq_num= z.addr_seq_num AND q1.contact_seq_num=z.cntct_seq_num AND q1.addr_seq_num=c.main_addr_seq_num AND q1.contact_seq_num=( SELECT MIN(di.contact_seq_num) FROM ps_AUC_CONTACT_HDR di WHERE di.addr_seq_num= z.addr_seq_num AND di.addr_seq_num=c.main_addr_seq_num AND di.setid=A.bidder_setid AND di.bidder_id=a.bidder_id)) UNION ( SELECT a.auc_id ,a.auc_round ,a.auc_version , a.business_unit ,A.bidder_setid ,a.bidder_id ,a.bidder_loc ,a.bid_inv_response ,( SELECT DISTINCT 'X' FROM PS_RESP_HDR b WHERE b.auc_id=a.auc_id AND b.bidder_id= a.bidder_id AND b.auc_bid_status='P'),c.name1 ,z.contact_name,z.emailid FROM ps_auc_disp_hdr a,ps_vendor c,PS_VENDOR_CNTCT z,ps_AUC_DISP_ADDR d WHERE a.auc_id = d.auc_id AND a.auc_round =d.auc_round AND a.auc_version=d.auc_version AND a.business_unit=d.business_unit AND c.vendor_id=a.bidder_id AND A.bidder_setid=C.SETID AND d.cntct_seq_num= z.cntct_seq_num AND A.bidder_type='V' AND d.bidder_type='V' AND d.bidder_loc=a.bidder_loc AND z.setid=C.SETID AND z.vendor_id=c.vendor_id AND z.eff_status='A' AND z.effdt= ( SELECT MAX(R.effdt) FROM PS_VENDOR_CNTCT R WHERE R.setid=C.SETID AND R.vendor_id=c.vendor_id AND R.eff_status='A' AND r.cntct_seq_num= z.cntct_seq_num AND R.effdt<=%CurrentDateIn)) UNION ( SELECT a.auc_id ,a.auc_round ,a.auc_version , a.business_unit ,A.bidder_setid ,a.bidder_id ,a.bidder_loc ,a.bid_inv_response ,( SELECT DISTINCT 'X' FROM PS_RESP_HDR b WHERE b.auc_id=a.auc_id AND b.bidder_id= a.bidder_id AND b.auc_bid_status='P'),e.name1,c.NAME1 AS oprdefndesc,C.EMAILID FROM ps_auc_disp_hdr A,PS_AUC_CUST_CNT_VW C,ps_AUC_DISP_ADDR d , PS_CUSTOMER e WHERE A.bidder_type='C' AND C.bidder_id=d.bidder_id AND A.bidder_id=d.bidder_id AND C.bidder_setid=d.bidder_setid AND A.bidder_setid=d.bidder_setid AND d.auc_id= A.auc_id AND d.addr_seq_num=C.address_seq_num AND d.cntct_seq_num=C.cntct_seq_num AND d.bidder_type=A.BIDDER_TYPE AND e.cust_id= A.bidder_id AND e.setid=C.bidder_setid) UNION ( SELECT a.auc_id ,a.auc_round ,a.auc_version , a.business_unit ,A.bidder_setid ,a.bidder_id ,a.bidder_loc ,a.bid_inv_response ,( SELECT DISTINCT 'X' FROM PS_RESP_HDR b WHERE b.auc_id=a.auc_id AND b.bidder_id= a.bidder_id AND b.auc_bid_status='P'),c.name1 ,c.vendor_name_short,' ' FROM ps_auc_disp_hdr a,ps_vendor c WHERE c.vendor_id=a.bidder_id AND A.bidder_setid=C.SETID AND A.bidder_type='V' AND a.bidder_id NOT IN ( SELECT z.bidder_id FROM ps_auc_disp_hdr z ,ps_vendor q ,ps_PO_SUP_CNTCT_VW q1 WHERE q.vendor_id=z.bidder_id AND z.bidder_setid=q.SETID AND q.default_loc= z.bidder_loc AND z.bidder_type='V' AND q1.vendor_id = q.vendor_id AND q1.setid= q.setid) )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 AUC_ID Character(10) VARCHAR2(10) NOT NULL Event ID
2 AUC_ROUND Number(5,0) INTEGER NOT NULL Event Round
3 AUC_VERSION Number(5,0) INTEGER NOT NULL Event Version
4 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
5 BIDDER_SETID Character(5) VARCHAR2(5) NOT NULL Bidder Setid
6 BIDDER_ID Character(15) VARCHAR2(15) NOT NULL Bidder ID
7 BIDDER_LOC Character(10) VARCHAR2(10) NOT NULL Bidder Location
8 BID_INV_RESPONSE Character(1) VARCHAR2(1) NOT NULL Invitation Accepted/Declined
A=Accepted
D=Declined
N=---
9 DESCR Character(30) VARCHAR2(30) NOT NULL Description
10 BIDDER_CNTCT_NAME Character(50) VARCHAR2(50) NOT NULL Bidder Contact Name
11 NAME Character(50) VARCHAR2(50) NOT NULL Name
12 EMAILID Character(70) VARCHAR2(70) NOT NULL A user's E-mail address