I'm working in Teradata, and my data looks like this:
Image of data my query is:
select id, type
from table1
where id in (100, 101)
group by 1,2
having count(distinct type) > 1
but its returning nothing??? I'm confused why it's not working. I'm expecting it to return where the distinct type is greater than 1, so shouldn't the output be???:
Please help