Hi,I have a query like:select row_number() over (partition by col1, col2, col3 order by col1, col2, col3) as rowid,col1, col2, col3, col4, col5from table1
i require only the top rows of each combination of col1, col2 & col3 and hence use rowid = 1, but for that i can't use the foll.select row_number() over (partition by col1, col2, col3 order by col1, col2, col3) as rowid,col1, col2, col3, col4, col5from table1where rowid = 1
workaround is to use a subquery. Can anybody please suggest me a better way of doing this?