SyntaxFix
Write A Post
Hire A Developer
Questions
This will give you the result you're giving as an example:
SELECT DISTINCT a, b FROM pairs