I have a table
id term_id price
2 1 100
4 1 200
6 1 500
1 2 100
3 3 100
5 3 500
7 3 700
I want only two row of all term id.
id term_id price
4 1 200
6 1 500
1 2 100
5 3 500
7 3 700