How to write dynamic statement with way do it run quickly?

How much data are we talking about !!!

Millions of rows !! makes a difference to simple queries also ..

:slight_smile: