Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mmccardle
Starting Member
43 Posts |
Posted - 2011-05-13 : 14:50:35
|
| I have a report with 52 sub-queries, each of these queries inserts a value in a table variable based on a range of dates (per month, per year values in a different column). It only takes 9 seconds to run, however I'm wondering if from a good practice standpoint I should copy these records into a table variable first and do my number crunching from there, instead of hitting the database table directly. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|