SELECT DISTINCT C.BUSINESS_UNIT ,A.TEAM_ID ,PERSON_ID ,T.LANGUAGE_CD ,T.DESCR FROM PS_SPB_TEAM A , PS_SPB_MEM_BY_TEAM B ,PS_SPF_REQ_LINE C , PS_SET_CNTRL_GROUP S , PS_SPB_TEAM_LANG T WHERE A.SETID =B.SETID AND A.TEAM_ID= B.TEAM_ID AND A.EFFDT=B.EFFDT AND A.TEAM_TYPE = B.TEAM_TYPE AND A.EFF_STATUS = 'A' AND B.TEAM_TYPE = 'SC' AND C.BUSINESS_UNIT = S.SETCNTRLVALUE AND S.REC_GROUP_ID = 'SP_02' AND B.SETID = S.SETID AND A.SETID=T.SETID AND A.TEAM_ID=T.TEAM_ID AND A.EFFDT=T.EFFDT AND A.TEAM_TYPE=T.TEAM_TYPE AND %EffdtCheck(SPB_TEAM,A,%CurrentDateIn)
|