I have got a bunch of SQL Statements. They are in a special order so if the first statement returns a row I am done, if not go to the next Statement and return the result. What would be a fast way to do this? I tried to realize it in T-SQL because I am on a MSSQL Server but it's really slow.
It's really important to make this thing as fast as possible.