Viewing 15 posts - 8,191 through 8,205 (of 8,731 total)
That doesn't make sense either.
Your not using columns from your table to filter, you're getting the last row returned by SQL Server (which might not always be the one you...
December 6, 2012 at 5:38 pm
I'm not sure that this is great for performance, but you could do something like this.
I might be wrong, so you should test with your data.
USE [TEST_DATABASE]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER...
December 6, 2012 at 5:01 pm
I'm not sure if you have tried something like this or you might be looking for something else.
CREATE TABLE #Test( string varchar(1000))
INSERT INTO #Test VALUES('<ITEM>ABC</ITEM><ITEM>DEF</ITEM><ITEM>GHI</ITEM>')
SELECT item
FROM #Test t
CROSS APPLY dbo.DelimitedSplit8K(...
December 6, 2012 at 1:07 pm
You're not really pivoting, you just need to add conditions to a SUM.
You're grouping by stockcode and location and suming orders and quantities.
Just think about it and try something.
November 28, 2012 at 8:56 am
weberharter (11/26/2012)
You get...
November 26, 2012 at 8:05 pm
I'm not sure what you mean. That's not an sp and I'm unaware of the term append sp.
Could you clarify what you need?
November 26, 2012 at 5:09 pm
What you mention about choosing the best execution plan, is covered on Gail's article.
And no, it won't give you better performance as it will use a "safe plan".
You might not...
November 26, 2012 at 11:52 am
Format function is not available in SQL Server 2005.
It was introduced in 2012, check the BOL (Books On Line, alias help or documentation)
November 26, 2012 at 7:41 am
The easiest way is to do it like this
WHERE Oink.[System] like @System + '%'
ANDOink.Stratigrafie like @Stratigrafie + '%'
ANDOink.Ulozeni like @Ulozeni + '%'
AND Oink.DrEvid like @DrEvid + '%'
Or you can add...
November 23, 2012 at 2:35 pm
I have two options for you.
The first is to change the empty string for a '%', that way you get rid of the ORs. You need to do that before...
November 23, 2012 at 11:33 am
I'm sorry, but I got lost in the explanation. Could you read the article linked in my signature and come back to post DDL, sample data and expected results? (it's...
November 22, 2012 at 3:44 pm
bitbucket-25253 (11/21/2012)
November 21, 2012 at 10:56 am
Are you sure? This might give you a better idea.;-)
SELECT string,
MAX( CASE WHEN itemNumber = 1 THEN item END) AS firstpart,
MAX( CASE WHEN itemNumber = 2 THEN item...
November 21, 2012 at 10:30 am
November 21, 2012 at 9:46 am
How about adding an extra answer in every question, something like: "I don't know"?
November 16, 2012 at 1:14 pm
Viewing 15 posts - 8,191 through 8,205 (of 8,731 total)