So I got a table anonym that look like this:
ID anonyfield1 anofield2 someNumber
111 left test 1
111 right test 1
111 ok
222 left ok
222 left 1
222 right ok 2
222 right ok 2
I want to get the highest numbers of row/result by ID in this table, for instance the result would be 4 here, because the ID 222 has 4 row.
I can’t figure out how I can get this result by using a query SQL, so I would like some help plz 🙂
By the way I use pgsql.
1 Answer