Viewing 15 posts - 1,681 through 1,695 (of 4,087 total)
Hi,
This is probably pretty basic but I've never really...
July 12, 2017 at 3:31 pm
One option that I have not seen mentioned is to use the OFFSET/FETCH that was introduced in SQL 2012 specifically for pagination. What you want is essentially pagination with one...
June 28, 2017 at 8:44 am
Well, my new job has been keeping my very busy, so I haven't had much time to come here, and even less time to post.
June 22, 2017 at 2:59 pm
Try changing your join to the following
INNER JOIN #test child ON child.Key_txt LIKE Parent.Key_txt + '[0-9]%'
AND LEN(child.Key_txt) - 16=LEN(Parent.Key_txt) /* I think you had these backwards. */
June 14, 2017 at 12:04 pm
May 30, 2017 at 7:48 pm
May 24, 2017 at 1:08 pm
You haven't supplied a value for the ELSE condition in your CASE expression, so it is using the default NULL value. If you want it to be 0, you should...
May 18, 2017 at 11:40 am
Purely from a performance perspective, is the...
May 18, 2017 at 8:29 am
SELECT C.UniqueID, F.ValueMay 18, 2017 at 7:46 am
According to SUM (Transact-SQL), SUM() OVER(<partition> ORDER BY <order clause> ) is available starting in SQL-2008, which is what I was remembering.
Drew
May 17, 2017 at 11:02 am
May 17, 2017 at 10:54 am
May 17, 2017 at 10:46 am
SELECT @dtStart = ISNULL(CONVERT(INT, CONVERT(CHAR(8), @dtsStart, 112)), @dtEffective)
There's probably nothing you can do about this, but representing dates as integers is a bad idea.
Drew
May 17, 2017 at 10:25 am
Viewing 15 posts - 1,681 through 1,695 (of 4,087 total)