• Yes, but this only allows me to group on class / type of statement.

    I would like to group simular statements

    select * from table1 where id = 1 order by id

    select * from table1 where id = 4 order by id

    is in my perspective same statement, I need some statement that can "mask" criteria..

    I can take a substring and cut all from where, but I need to know coulmns are used, in order to validate indexes, and also if coulmns are not same, it might be an other action in application