Viewing 15 posts - 42,241 through 42,255 (of 59,102 total)
Sorry... I left out one "%" wildcard in the code above... I've fixed the code above.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 9:33 pm
paula (8/20/2009)
I'm sorry. But I am a bit lost here. I think I need the sum aggregate function. I don't think max will give me what I'm looking for.
I understand...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 9:28 pm
Alright... give me a bit and I'll show you how to do the pre-aggregated cross tab from the article link I just posted. It'll also improve performance drastically.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 8:05 pm
WilliamB (8/20/2009)
You need to include your CASE statements in your group by clause for your query to work. eg:
SELECT TOP 10
[VOLUME] = count(1),
[ISVALID] =
CASE BOT_DR_CLIENT_NO
WHEN 1 THEN 'YES'...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 8:03 pm
"Rounding" doesn't mean the same thing as "Formatting" and how ROUND displays a result really shouldn't matter... formatting should be done in the GUI especially on date, time, and currency...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:58 pm
What is the datatype of the SEQ column. Also, you're kinda new... take a look at the article in the first link in my signature line below. I...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:52 pm
San (8/19/2009)
Ok. By the way, why do we need to detach the DB for taking abckup.? What's the advantage.?
There is only one... how many people can change data during a...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:45 pm
San (8/19/2009)
Asked in an interview.
So, what did you answer in the interview?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:43 pm
middletree (8/20/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:38 pm
Not only should they know T-SQL, but they should be "dancing with the stars" when it comes to T-SQL because guess who gets to "tune the database"? Guess who...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:20 pm
mirravi9 (8/20/2009)
but i need to write a stored procedure using cursor
As the others have stated, "No... you probably don't". The thing is, we need more info about your problem...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:12 pm
Ghanta (8/20/2009)
(not many duplicates though)..
It's important... how many?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:09 pm
If the production server has a large amount of data on it, backup/restore probably isn't the most effective method. If a SAN is involved, it sometimes comes with or...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:07 pm
As a bit of a sidebar... unless this formatting you want to do is strictly for output to a file, you should let the GUI do date formatting so that...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 7:03 pm
Heh... corporate made the brilliant decision to move our SQL Servers to VM. We're a "sub division" of the main company and had to comply. We've had nothing...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 20, 2009 at 6:58 pm
Viewing 15 posts - 42,241 through 42,255 (of 59,102 total)