Viewing 15 posts - 1,366 through 1,380 (of 4,087 total)
I copied and pasted the character from your post and I got that it was Unicode 8722 – the MINUS SIGN.
Drew
January 9, 2018 at 1:13 pm
I guess that I'll dissent. There are certain very limited situations where sorting by ordinal position is useful. ...
January 9, 2018 at 1:07 pm
J Livingston SQL - Tuesday, January 9, 2018 10:31 AMwild guess.....
SELECT ABS(id)
FROM yourtable
GROUP BY ABS(id)
HAVING(COUNT(DISTINCT grp) > 1);
I'm still thinking...
January 9, 2018 at 10:36 am
Can anyone please advise on how to go about returning records where an int datatype column contains...
January 9, 2018 at 9:41 am
You're overcomplicating things. You're using two separate methods to find the MAX() date. You only need one.
SELECT
[TSI].[ZATS_BROKER_FEED].[HTS_NUMBER]
, #TEMP1.Part_Num
, 1 -- This will always be...
January 9, 2018 at 8:48 am
January 9, 2018 at 8:14 am
January 5, 2018 at 12:37 pm
You're asking for advice from the Internet on what records to delete from your database?
Only you can say whether the query is right, but you should ALWAYS TEST...
January 3, 2018 at 3:21 pm
OFFSET/FETCH was introduced in SQL 2012 specifically to handle paging, which is what you are trying to do.
Drew
January 3, 2018 at 2:59 pm
SELECT fvendno, fcompany, POItemKey, PORelsdate, SUM(totstdcost) AS TotStdCost
FROM #mytable
GROUP BY fvendno, fcompany, GROUPING SETS( (POItemKey, PORelsdate, ID), () )
;
This only requires 1 scan,...
January 3, 2018 at 9:06 am
Since you're only looking for ONE row, there is no reason to use the relatively expensive .nodes() function.
SELECT @XML.value('(/tokens/token/typeid/text())[1]', 'int') AS typeidid,
@XML.value('(/tokens/token/p1/text())[1]', 'decimal(6,3)') AS p1id
January 3, 2018 at 8:44 am
January 2, 2018 at 2:42 pm
Viewing 15 posts - 1,366 through 1,380 (of 4,087 total)