Viewing 15 posts - 421 through 435 (of 1,464 total)
Try shredding your xml in a CTE, then do the count/group by using the CTE as source
October 27, 2019 at 6:45 am
There is a typo in the explanation. The date format is given for 103 and not 101
October 25, 2019 at 4:24 am
NO. DO NOT store decimals as varchar.
Find the error in the code that is doing the rounding. What data types are being used in the UI?
Trace the call to the...
October 22, 2019 at 8:57 am
You are not giving us much to work with. But the 2 Clustered Index Scans are not doing you any favours
October 20, 2019 at 7:17 am
This might help ...
SELECT jsonpayload = STUFF(jsonpayload, Start.Pos, Fin.Pos -1, '')
FROM YourTable
CROSS APPLY (SELECT CHARINDEX('?', jsonpayload, PATINDEX('%dealsPermaLink: /%', jsonpayload))) AS Start(Pos)
CROSS APPLY (SELECT PATINDEX('%,Id%', SUBSTRING(jsonpayload, Start.Pos, LEN(jsonpayload))))...
October 19, 2019 at 5:55 am
October 18, 2019 at 6:13 pm
October 18, 2019 at 6:07 pm
Let me try to explain a little better.
I need to get a select where all columnB that are not columnA value 1 turn to zero.
Please provide...
October 18, 2019 at 8:25 am
That would depend on the company that you work for.
Where I work, DBAs are responsible for keeping SQ:L running, while Developers are responsible for giving the DBAs grey hairs. Yes,...
October 18, 2019 at 4:27 am
You should look at JOINs
SELECT i.Name, i.Age, m.Description AS IDNumber
FROM [INFO] AS i
INNER JOIN [MATION] AS m
ON i.IDNumber = m.ID
October 18, 2019 at 4:24 am
This looks like you are trying to do an UPDATE. If so, then
UPDATE YourTable
SET columnB = CASE
...
October 17, 2019 at 4:33 pm
Remove this part
PARTITION BY WhatWeight
October 17, 2019 at 3:02 pm
I have not checked this against your spreadseet
WITH cteBase AS (
SELECT whb.ID, whb.grower, whb.block, whb.section, whb.year, whb.weight, whb.payclass
...
October 17, 2019 at 11:04 am
hi
here i am again with a noob question again:
i'm trying to do this:
case
when columnA <> 0
then columnB = 1
else columnB
end
but it return error.
i used...
October 17, 2019 at 10:11 am
Viewing 15 posts - 421 through 435 (of 1,464 total)