L
Lloyd Dupont
let say I have a table like that
id1 id2 data
---------------
1 1 kmhkjhkj
2 3 k,wenlfwep
3 2 ;vcjefeporuf [e
4 1 eep poerjfe poj
5 3 wlu woiu owoi
how do I get all the line with id2 equal to its greatest value, that is:
2 3 k,wenlfwep
5 3 wlu woiu owoi
I don't want to write
"WHERE id2 = 3", I want to write something like
"WHERE id2 IS MAXIMUM" ?!?!
anyway of achieveing that?
id1 id2 data
---------------
1 1 kmhkjhkj
2 3 k,wenlfwep
3 2 ;vcjefeporuf [e
4 1 eep poerjfe poj
5 3 wlu woiu owoi
how do I get all the line with id2 equal to its greatest value, that is:
2 3 k,wenlfwep
5 3 wlu woiu owoi
I don't want to write
"WHERE id2 = 3", I want to write something like
"WHERE id2 IS MAXIMUM" ?!?!
anyway of achieveing that?