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

Selecting groups whose member belongs to multiple groups - response (1) by terasum

$
0
0

Sagar,

Put your table name instead of in below query and run it.

select * from
where group_id in
( select group_id from
where member_id in
(select member_id from
group by 1
having count(member_id) >1
)
)
order by group_id,member_id;


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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