Viewing 15 posts - 1,186 through 1,200 (of 1,244 total)
TomThomson (5/21/2015)
Have a look at this one. To me it looks like a recipe for disaster.
The word "Darwinism" comes to mind...
May 21, 2015 at 5:59 pm
Ed Wagner (5/21/2015)
Jason A. Long (5/21/2015)
MikeTomkies (5/21/2015)
May 21, 2015 at 1:59 pm
MikeTomkies (5/21/2015)
May 21, 2015 at 12:09 pm
I agree... I definitely like Luis' solution better.
Yes, I'm very familiar with how to do a cross tab query using aggregated case expressions... Unfortunately, that simply wasn't the 1st solution...
May 21, 2015 at 11:54 am
Take this for a spin. It seems to match your desired output...
-- Test Data --
IF OBJECT_ID('tempdb..#temp') IS NOT NULL
DROP TABLE #temp;
SELECT
Part,
FifoCode
INTO #temp
FROM
( VALUES ( 'xxx', ' 1:2.0:2:2.5'), ( 'yyy',...
May 21, 2015 at 11:27 am
When I made the same switch myself, about 5 years ago, I used the 2008 version of this book... Microsoft SQL Server 2012 Reporting Services 4/E
It had me up and...
May 20, 2015 at 9:23 pm
Here's another set of examples...
SELECT DATEADD(yy, DATEDIFF(yy, 0, CURRENT_TIMESTAMP), 0) AS FirstOfCurrentYear
SELECT DATEADD(qq, DATEDIFF(qq, 0, CURRENT_TIMESTAMP), 0) AS FirstOfCurrentQuarter
SELECT DATEADD(mm, DATEDIFF(mm, 0, CURRENT_TIMESTAMP), 0) AS FirstOfCurrentMonth
SELECT DATEADD(wk, DATEDIFF(wk, -1, CURRENT_TIMESTAMP),...
May 20, 2015 at 8:53 pm
Steve Jones - SSC Editor (5/20/2015)
If you want to get Prompt and show it helps, I'd get some queries you normally write, and time the...
May 20, 2015 at 8:11 pm
Alan.B (5/20/2015)
May 20, 2015 at 4:48 pm
Intellisense tends to work best when you give it a little help...
Stare your query like this...
SELECT
*
FROM dbo.MyTable mt
Now you should be able to go back into the select list...
SELECT...
May 20, 2015 at 4:16 pm
If the rows are identical, how can can you have a "maximum"?
Are you trying to delete duplicate rows or simply trying to grab just 1 row from a set of...
May 20, 2015 at 2:56 pm
Brandie Tarvin (5/20/2015)
Grant Fritchey (5/20/2015)
AAARRARARRGGGGHHHH!!!
Sometimes, I just wonder why any of us even try. Reams of good advice from multiple people. All of it ignored. Apply a random query hint....
May 20, 2015 at 11:40 am
Lynn Pettis (5/19/2015)
.Like my simplistic explanation?
Yes I do. Thank you very much. Your answer, combined with Gail's, makes perfect sense. Case sensitive collation isn't something I use on a regular...
May 20, 2015 at 6:01 am
Viewing 15 posts - 1,186 through 1,200 (of 1,244 total)