Viewing 15 posts - 1 through 15 (of 53 total)
SELECT MAX(v)
FROM (VALUES ('2018-01-01') (GETDATE())) AS value(v);
I get an 'Incorrect Syntax' message. What...
January 8, 2019 at 7:27 am
January 8, 2019 at 3:55 am
Though I chose the option that has been marked correct, think the more appropriate answer would be "None of these. QUOTENAME() takes only one parameter" as the second...
November 2, 2018 at 3:59 am
August 22, 2018 at 2:36 am
Hello,
I have a field that contains all capital letters. For example, "SQL SERVER CENTRAL".
Is...
May 1, 2018 at 9:37 am
December 12, 2017 at 8:34 am
I used:
'This Is a...
December 12, 2017 at 3:09 am
December 11, 2017 at 10:26 am
Note also that the semicolon is a statement terminator, not a statement initiator.
Noted, thank you.
Convert this to an iTVF and your performance gain will be greater still.
December 7, 2017 at 10:03 am
Nicely done, but there are couple of drawbacks
1. The function doesn't handle the non-alpha characters in the input string. See what happens if you use ' CONVERT tHis to 1...
December 7, 2017 at 5:14 am
Try the below code
SELECT * FROM Test AS A
WHERE A.Type = 'Non-IT'
AND NOT EXISTS
(SELECT 1 FROM Test AS B
WHERE A.ID = B.ID
AND B.Type = 'Manager')
July 21, 2015 at 5:22 am
kiran.rajenimbalkar (6/26/2015)
its working fine for few columns but I do have more then 5 columns in my sql and its not giving the proper ranking using DENSE_RANK function so...
June 26, 2015 at 8:39 am
Try the below code
SELECT DENSE_RANK() OVER (ORDER BY id,NAME) AS rnk
,id
,NAME
,order_key
,order_key_rank
FROM abc_order
ORDER BY order_key
,order_key_rank
June 26, 2015 at 4:40 am
This article might help you out
http://www.sqlservercentral.com/articles/Integration+Services+(SSIS)/61542/
June 17, 2015 at 6:18 am
Viewing 15 posts - 1 through 15 (of 53 total)