$ 0 0 Hi Sagar, simply add: SELECT .... QUALIFY MIN(MEMBER_FLAG) OVER (PARTITION BY GROUP_ID) = 'Y' AND MIN(MEMBER_FLAG) OVER (PARTITION BY GROUP_ID) = MAX(MEMBER_FLAG) OVER (PARTITION BY GROUP_ID) Dieter
Hi Sagar,
simply add:
Dieter