Viewing 15 posts - 41,941 through 41,955 (of 59,102 total)
I still recommend you lookup and study OUTPUT in Books Online, but here's a working example...
--===== Create and populate a 1,000,000 row test table.
-- Column...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 8:14 pm
bill36email (9/16/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 8:00 pm
Matt is certainly on the right track... but you don't need a CASE statement...
select A.grading, ISNULL(NULLIF(count(B.IDno),0),COUNT(B.IDno)) as myCount
From A
left join B on A.fkIDno = B.IDno and A.grading = 1
left join...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 7:53 pm
crainlee2 (9/16/2009)
If you were faced with my situation, what would be the best course of action(s)?
Test and find out for sure... here's a starter kit...
SELECT TOP 1000000
...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 7:45 pm
I'm still trying to fix this. My Google search may have found something to fix it but we'll see. Here's the "fix" article I found and have instantiated...
http://support.microsoft.com/kb/928091
Once...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 6:56 pm
Sure... and a bit more to boot...
--_______________________________________________________________________________________________________________________
/**********************************************************************************************************************
Purpose:
Returns a single result set similar to sp_Space used for all user tables at once.
Notes:
1. May be used as a...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 5:38 pm
Panchi (9/15/2009)
Begins Ends
27-Mar 23-Apr ( 4 weeks)
24-Apr 21-May ( 4 weeks)
22-May ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 3:23 pm
Panchi (9/16/2009)
I need to select only one set of record from a set of duplicate records . Below is my query .
...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 3:16 pm
"Quirky" update is a name assigned to 3 part updates by Phil Factor. In this case, "Quirky" means that it operates in a different manner than most people expect.
So...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 2:38 pm
pwatson-904240 (9/16/2009)
I wonder if anyone can help me with this.
I have a date table that has the following columns
Weekno (1 - 52)
PeriodNo (1 - 12)
WeekStartDate (Every Sunday)
WeekEndDate (Every Saturday)
Year...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 11:55 am
All good ideas and the link Elliot gave has some good information in it. I particullarly like Pauls suggestion on documentation.
I will caution folks that statements like "Use only...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 11:50 am
d viz (9/16/2009)
thanks for your input, but how does this handle concurrency? I need to have sequential numbering are you sure this will leave no blanks in...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2009 at 11:38 am
Bob Hovious (9/15/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2009 at 5:31 pm
Jonathan (9/15/2009)
Bob Hovious (9/15/2009)
where there may be many factors beyond one's control
This is exactly why you DON'T want screen display time in the mix. It includes system processes...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2009 at 3:35 pm
Sharon Matyk (9/14/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2009 at 6:09 am
Viewing 15 posts - 41,941 through 41,955 (of 59,102 total)