select rownumber() over(), queryno, bind_time, count(*) from cmnbatch.plan_table_old where bind_time >= '2011-06-11-00.00.00' group by queryno, bind_time with ur