Viewing 15 posts - 1,681 through 1,695 (of 4,085 total)
Hi,
This is probably pretty basic but I've never really...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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.
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 22, 2017 at 2:59 pm
Try changing your join to the following
J. Drew AllenINNER 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. */
Business Intelligence Analyst
Philadelphia, PA
June 14, 2017 at 12:04 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 30, 2017 at 7:48 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 30, 2017 at 2:51 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 18, 2017 at 11:40 am
Purely from a performance perspective, is the...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 18, 2017 at 8:29 am
SELECT C.UniqueID, F.ValueJ. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 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
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 17, 2017 at 11:02 am
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 17, 2017 at 10:54 am
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 17, 2017 at 10:25 am
Reported as spam.
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 16, 2017 at 1:19 pm
Viewing 15 posts - 1,681 through 1,695 (of 4,085 total)