Viewing 15 posts - 421 through 435 (of 1,468 total)
Try these 2 queries
UPDATE EmpNameTable
SET Empname = Empname + '_OLD'
WHERE Empname NOT LIKE '%[_]OLD' -- Do not update when already updated
AND Empname NOT LIKE '85%'...
October 31, 2019 at 9:00 am
So, you already have the last day of the month. Just subtract 1 day and you'll have the second last day
select DATEADD(DAY, -1, DATEADD(MONTH, DATEDIFF(MONTH, -1, GETDATE())-1,...
October 31, 2019 at 4:20 am
It comes in file and then we have SSIS package to insert it into SQL table which has data type of varchar. Now when we want to use the...
October 30, 2019 at 7:59 pm
The ONLY way top guarantee the order of the order of the ordering of the result set is to use an ORDER BY.
October 30, 2019 at 3:33 am
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
Viewing 15 posts - 421 through 435 (of 1,468 total)