I have a cursor where it has select query
select col1,col2,col3 from table
where col1 is not null
group bycol1,col2,col3
I need a count of the query so that i can use it in inner query, How to get the count form the abouve query? need to keep it in a variable?