How to select a value of a max value of another column in the same row?
tcodeJan 10 2012 — edited Jan 11 2012pversion pdate pcount
1 11/6/2011 1
0 11/6/2011 25
1 11/6/2011 24
How to select pversion for a maximum pcount, in this case max count is 25 and version will be 0?