I have searched much about it but I couldn't find any related information about my problem. I have a dataset like this.
Column1 Column2
A B
A B
A C
X B
X B
Y C
Y B
T A
T A
T A
I can distinct Column1 with total number of occurences. But I actually want to remove the constant rows. When I run the query, the result should be like this;
Column1 Column2
A B
A B
A C
Y C
Y B
As we see above A and Y have different values in Column2. How do I query this? I am using Sql Server 2014