WTHDBAL_LG_SRCH(SQL View) |
Index Back |
---|---|
Suppliers in Withholding Balan |
SELECT DISTINCT c.setid , c.vendor_id , c.vndr_loc , d.language_cd , d.vendor_name_short , b.ar_num , d.name1 FROM ps_wthd_trxn_tbl a , PS_VENDOR_LOC c , ps_vendor b , ps_vendor_lang d WHERE a.vendor_setid = c.setid AND a.vendor_id = c.vendor_id AND a.vndr_loc = c.vndr_loc AND c.effdt = ( SELECT MAX(c1.effdt) FROM PS_VENDOR_LOC c1 WHERE c1.setid = c.setid AND c1.vendor_id = c.vendor_id AND c1.vndr_loc = c.vndr_loc AND c1.effdt <= a.wthd_decl_date AND c1.eff_status = 'A') AND b.setid = c.setid AND b.vendor_id = c.vendor_id AND b.setid = d.setid AND b.vendor_id = d.vendor_id |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: SP_SETVND_NONVW |
2 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL |
Vendor Identifier
Prompt Table: VNDR_ACTIVE_VW |
3 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL |
Vendor Location
Prompt Table: VNDR_LOC_AP_VW |
4 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
5 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL |
Short Vendor Name
Prompt Table: VENDOR_SHRT_VW1 |
6 | AR_NUM | Character(15) | VARCHAR2(15) NOT NULL |
Our Customer Number
Prompt Table: VNDR_AR_VW |
7 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL |
Name 1
Prompt Table: VNDR_NAME1_VW |