Tagged Questions
2
votes
1answer
123 views
Is it possible to make a reference to the result of an aggregate function in a SELECT clause from the same SELECT clause?
I'm not a Database Administrator--just a Software Engineer. I would like to know if it is possible to reduce the following T-SQL query:
SELECT
SUM(Price * Quantity) as 'Total',
SUM(Price * ...
4
votes
1answer
215 views
Are there tools for SQL-Server helping to add the semicolons?
Earlier versions of SQL-Server didn't recommend the use of semicolons to terminate sql-statements.
Beginning with sql-server-2008 examples show, that now Microsoft recommends terminating with ...