BC_SOLDTO_FLG

(SQL View)
Index Back

BC Sold to Flag

BC Sold to Flag

SELECT A1.BO_ID , MAX(CASE WHEN B1.ROLE_TYPE_ID = 42 OR B1.ROLE_TYPE_ID = 46 THEN 'Y' ELSE 'N' END) FROM PS_BC A1 , PS_BO_ROLE B1 WHERE B1.BO_ID = A1.BO_ID AND B1.ROLE_START_DT <= %CurrentDateIn AND B1.ROLE_END_DT > %CurrentDateIn GROUP BY A1.BO_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
2 SOLD_TO_FLG Character(1) VARCHAR2(1) NOT NULL A boolean that flags whether or not the customer is a valid Sold To customer.