How does writing SQL queries for reports, which often are just run once a week, once a month or some infrequent amount, differ from writing queries for web applications (or applications) which are run many times a day? If a query runs only once a month, speed and performance isn’t a big issue, correct? How about in terms of using aspects of SQL more frequently (temp tables, CTEs, etc)?
Share
They are not different and the same considerations taken with any other query apply.
Whether speed and performance are an issue is not your decision, but that of the report users.
What happens if your monthly report query takes 3 hours, blocking several tables in the process and bringing your other applications to a halt because they don’t have access to them?