Viewing 15 posts - 3,811 through 3,825 (of 5,590 total)
Jeff Moden (7/9/2010)
July 9, 2010 at 9:14 pm
GabyYYZ (7/8/2010)
July 9, 2010 at 9:08 pm
I'm not following what it is that your asking for???
July 9, 2010 at 9:05 pm
doobya (7/8/2010)
If you don't mind, I'll just go ahead and disagree with you on all those points. 😉 It all works exactly as I expect it to work according...
July 9, 2010 at 8:56 pm
I don't know what they're going to call it, but I'd bet that the version number starts with "11."
July 9, 2010 at 8:50 pm
Thanks for supplying some test data and the expected results. It would be a lot easier to help you if you would have supplied it in the format I've used...
July 9, 2010 at 8:39 pm
bagofbirds-767347 (7/9/2010)
ideally i the query would have a variable number of items
In that case, in addition to reading Part 1 of the article that CC mentioned above, check out Part...
July 9, 2010 at 8:18 pm
Lowell,
This is neat. I'm storing this in the "bag-of-tricks"!
July 9, 2010 at 8:16 pm
Someone wrote a complicated view once. It was used in a stored procedure, but since it didn't have all the columns the proc needed, joined back to the tables that...
July 9, 2010 at 6:52 am
CirquedeSQLeil (7/8/2010)
July 8, 2010 at 12:53 pm
Jeff Moden (7/7/2010)
Unless ...the queries were written by an embedded cursor zealot, you shouldn't have much of a problem.
Weren't you just teaching how to do this? 😀 (ducking and running!!!)
July 8, 2010 at 12:49 pm
Since you posted in a SQL 2005 forum, I'm assuming that you are on that version, which means that the sql 2008 date/time enhancements won't help you:
declare @minutes int =...
July 8, 2010 at 12:44 pm
declare @testdate datetime
set @testdate = '20080131'
select DATENAME(month, @testdate)
July 8, 2010 at 9:55 am
Distinct based upon what?
Your query is producing the correct results for the data you have.
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts...
July 8, 2010 at 9:45 am
If you use a function on a column in the where/join condition, you are essentially forcing a scan. You need to recode your expression to eliminate the function on the...
July 8, 2010 at 9:01 am
Viewing 15 posts - 3,811 through 3,825 (of 5,590 total)