Viewing 15 posts - 2,251 through 2,265 (of 4,081 total)
I have the following code. I would like to group on Month and year. I have tried converting datetime to varchar to change the format.That did not work. Running the...
October 12, 2009 at 10:58 am
I am a developer, but even if I weren't my opinion about the urgency of these questions still stands.
Understand, I am not saying the OP doesn't have a right to...
October 12, 2009 at 10:52 am
Your way would definitely save a few CPU cycles, but shouldn't it be
GROUP BY DATEADD(month,datediff(month,0,cv.Dischargedtm),0)
??
October 12, 2009 at 10:40 am
I believe this is the third question which I have seen marked "urgent" from this particular OP.
Obviously, it's all urgent to him. But...
October 12, 2009 at 8:06 am
Because his homework assignment is due in the morning?
October 12, 2009 at 7:54 am
The Thread is like a Zen koan.
October 12, 2009 at 7:42 am
Gail is right. However neither cubes nor summary tables in SQL get automatically updated when values are changed. You have to rebuild them. ...
October 10, 2009 at 6:17 pm
If the data is static, just take the results of the query and store them in a table, then query THAT table.
October 10, 2009 at 12:02 pm
First, test performance by writing to a temp table, not displaying on a screen. Screen display of thousands of rows adds overhead that has nothing to do...
October 10, 2009 at 7:51 am
I have to ask: Why is this being done with a cursor? It is terribly inefficient, as is populating each variable with a separate query to the...
October 9, 2009 at 1:54 pm
You're welcome, Mike.
Mark, the articles are very worthwhile and you will find tally tables an enormously useful (and FAST) technique. Take the...
October 8, 2009 at 12:19 pm
Mark, it's time you learned about tally tables to replace while loops and save a few cpu cycles. 🙂
Some good articles
http://www.sqlservercentral.com/articles/T-SQL/62867/
http://www.sqlservercentral.com/articles/T-SQL/67899/
An example for parsing:
declare @input varchar(100)
set @input = '|1|2|3|a|b|c|delta|bravo|#|@|'
;with...
October 8, 2009 at 10:33 am
Viewing 15 posts - 2,251 through 2,265 (of 4,081 total)