Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

To check ALL condition in Teradata - response (1) by dnoeth

$
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
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>