sorry for asking this, but i'm runnin' out of ideas
i have this table:
[id] [pid] [vid]
1 4 6844
1 5 6743
2 3 855
2 6 888
...
how to i query this eg.table to get the following result:
[id] [pid] [vid]
1 5 6743
2 6 888
i want to get the highest [pid] for an [id] with the [vid] matching to this [pid]
any ideas?
i'm using mssql 2008