There are two columns a and b in a table c. Every value a could have many same b values and every b value could have many a values. It's like a many to many relationship. Now I need to find out every a value who has different b values.
How could I using sql to accomplish this?

Thank you!