I made a table which contain:
sid| bid |date
---+-----+---------
31 | 102 |2002-05-09
31 | 103 |2002-05-09
31 | 104 |2002-09-22
22 | 101 |2002-10-10
22 | 102 |2002-10-10
22 | 103 |2003-01-10
64 | 101 |2003-01-11
64 | 102 |2003-01-11
22 | 104 |2003-02-10
74 | 103 |2003-02-12
I want to show the less frequent id which is 101 and 104. I found out how to make the most frequent but how to shot the least frequent?