select bind_time, substr(version, 1, 20), count(*) from cmnBatch.plan_table where progname = 'SN261@I' group by bind_time, version order by 2 desc, 1 desc ;