SELECT DISTINCT A.VNDR_LOC , D.LANGUAGE_CD , C.DESCR , A.VENDOR_ID , A.SETID FROM PS_VENDOR_LOC A , PS_VENDOR B , PS_VNDR_LOC_SCROL C , PS_VNDRLOCSCROL_LG D WHERE A.SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID AND A.SETID = C.SETID AND A.VENDOR_ID = C.VENDOR_ID AND A.VNDR_LOC = C.VNDR_LOC AND A.EFFDT = ( SELECT MAX(F.EFFDT) FROM PS_VENDOR_LOC F WHERE A.SETID = F.SETID AND A.VENDOR_ID = F.VENDOR_ID AND A.VNDR_LOC = F.VNDR_LOC AND F.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS = 'A' AND C.SETID = D.SETID AND C.VENDOR_ID = D.VENDOR_ID AND C.VNDR_LOC = D.VNDR_LOC
|