I have a result set stored in #Results.<BR><BR>Now I need to add MORE records to that #Results table.<BR><BR>The first query selects all of our employees and stores it in #Results.<BR><BR>Now what I ...
Use a CTE that returns the row ID and the result of the DateDiff, then join that to your existing result set? It may or may not be faster, so as always, test it to see.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results