SELECT DISTINCT D.EMPLID ,A.PROJECT_ID ,B.DESCR FROM %Table(PROJECT_TEAM_VW) A , %Table(PROJECT) B , %Table(PERSONAL_DATA) D WHERE B.EFF_STATUS <> 'I' AND A.TEAM_MEMBER = D.EMPLID AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND A.TEAM_MEMBER_CLASS = 'L' AND A.TEAM_MEMBER_IND = 'E' AND A.SCHED_NUM = ( SELECT MIN(E.SCHED_NUM) FROM %Table(PROJECT_TEAM_VW) E WHERE E.BUSINESS_UNIT = A.BUSINESS_UNIT AND E.PROJECT_ID = A.PROJECT_ID AND E.TEAM_MEMBER = A.TEAM_MEMBER AND E.TEAM_MEMBER_CLASS = A.TEAM_MEMBER_CLASS AND E.TEAM_MEMBER_IND = A.TEAM_MEMBER_IND)
|