Viewing 15 posts - 3,301 through 3,315 (of 10,144 total)
Jeff Moden (5/30/2014)
June 2, 2014 at 2:01 am
wolfkillj (5/30/2014)
SQLRNNR (5/30/2014)
wolfkillj (5/30/2014)
jcrawf02 (5/30/2014)
jasona.work (5/30/2014)
June 2, 2014 at 1:56 am
Do they really need to understand how it works in order to use it? I think it’s sufficient to know what it’s used for – “Pivot one or more columns...
May 30, 2014 at 8:59 am
sgmunson (5/30/2014)
If the original poster needed an explanation of a fairly simple query, somehow, it just doesn't seem likely that they're going to consider FOR XML PATH as something easier...
May 30, 2014 at 7:01 am
wendy elizabeth (5/29/2014)
...Can you explain to me the sql listed above?
If you want to make your code significantly faster, more compact, and more readable, try this:
SELECT
t.*,
x.[tMask_out]
FROM [test].[dbo].[test1] t
CROSS APPLY...
May 30, 2014 at 6:05 am
wendy elizabeth (5/29/2014)
...Can you explain to me the sql listed above?
A different coding method may help Steve's description:
SELECT tmask,
b1 = CASE WHEN rem2 >= 1 THEN 1 ELSE 0...
May 30, 2014 at 5:27 am
eyric101 (5/29/2014)
DECLARE @intTmpTblCnt INT,
@strTmpSql VARCHAR(max),
...
May 30, 2014 at 2:32 am
ronan.healy (5/29/2014)
where would i put it in the first slect
SET @MAXVALUE =
(
SELECT MAX(sectionnumber)+1,
FROM dbo.BNYWorkingSecTable
)
How about a little bargaining here - you spend a little time and effort describing your...
May 29, 2014 at 9:43 am
GBeezy (5/29/2014)
Before the function call I using the ASCII(RIGHT(t.OffensiveColumn,1)) to see what the ASCII character is, then calling the function, and returning the results to...
May 29, 2014 at 9:38 am
GBeezy (5/29/2014)
And it doesnt work, unless I am calling/using it wrong, I am passing my code in as the following:SELECT dbo.RemoveNonASCII(t.OffensiveColumn) AS RemovedASCII
FROM table t
Do you get an error or...
May 29, 2014 at 8:48 am
ronan.healy (5/29/2014)
it works well for the one account...
May 29, 2014 at 5:50 am
SQL Server has no explicit conversion from VARBINARY to FLOAT, but you can roll your own. Refer to this thread.
This inline table-valued function is based on the UDF described in...
May 29, 2014 at 4:17 am
Alvin Ramard (5/28/2014)
Luis Cazares (5/27/2014)
The code makes clear that there's a concatenation based on multiple values on a single column.
CASE WHEN A.[COL_1] LIKE '%cricket%' THEN 'ck' + ',' ELSE...
May 28, 2014 at 7:27 am
Check BOL (the SQL Server help system) for the ISNULL() function, and have a look at the related functions COALESCE() and NULLIF() too.
Note that your output columns can only be...
May 28, 2014 at 7:03 am
shiva N (5/28/2014)
SELECT DISTINCT a.itemcode,b.itemname
,SUM(qty) AS Total_Qty
,SUM(Price) AS Total_Price
FROM oppharsales2 AS a
LEFT JOIN masteritem AS b ON a.itemcode = b.itemcode
INNER JOIN oppharsales1 c ON a.billno = c.billno
GROUP BY a.itemcode
,b.itemname
Can you...
May 28, 2014 at 6:08 am
Viewing 15 posts - 3,301 through 3,315 (of 10,144 total)