Viewing 15 posts - 1 through 15 (of 21 total)
jetboy2k (9/5/2016)
September 6, 2016 at 11:19 am
Well, this would be part of the problem. 😛 There is no table, and definitely no insert statements; there's just the spreadsheet (attached in the OP). I've been making all...
April 23, 2015 at 6:35 pm
Alan.B - thanks for the DDL correction. Sorry about that; I totally forgot to indicate NULL/NOT NULL when setting up the table originally, so SQL Server assumed NULL for the...
April 16, 2015 at 8:03 pm
GilaMonster (3/19/2015)
Katerine459 (3/18/2015)
Unless the CTE is also a correlated subquery, wouldn't it just run onceAnd who said that a correlated subquery doesn't run just once?
I read that here: http://www.sqlservercentral.com/articles/Stairway+Series/105972/
March 19, 2015 at 10:21 am
arthur.bekker (3/18/2015)
I think anyone who wants to use CTEs should read this article http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/05/17/non-recursive-common-table-expressions-performance-sucks-1-cte-self-join-cte-sub-query-inline-expansion.aspx.
That blog post uses, in its example, this CTE:
with ctePerf ( objname, colid, colname, max_length...
March 18, 2015 at 4:31 pm
Update: looks like I posted too soon. The consensus in that thread now seems to be that CTEs, in and of themselves (as long as they're not recursive) are no...
March 18, 2015 at 1:46 pm
Question: in Listing 7, is there a way to see each recursion? Like, is there a way to see the contents of ReportingStructure after each recursion? I just want to...
March 17, 2015 at 10:39 pm
I don't know enough about the issue you're having, but I thought I'd share a brief walk-through (as best I can recall) of a recent successful setup of a SQL...
March 17, 2015 at 9:52 pm
Oh. Ok, I think I see now. 🙂
There are a couple ways I know of, both of which involve queries, not calculated columns in the table.
You could use a correlated...
March 16, 2015 at 11:19 am
I'm sorry; I'm half-asleep at the moment, so that may be why, but I'm having a hard time understanding the math in your example. The Values listed for PK1, for...
March 16, 2015 at 10:54 am
jasona.work (3/11/2015)
Katerine459 (3/11/2015)
If a stairway ever does get created, I just wanted to give...
March 11, 2015 at 6:10 pm
Thanks, all, for the recommendations... I'll be sure to check those out when I have a chance.
If a stairway ever does get created, I just wanted to give a quick...
March 11, 2015 at 12:44 pm
Agree with the others; listings 5 and 6 have been switched. Which led to a lot of confusion, as I'm looking at this:
To demonstrate using a subquery in a function...
March 10, 2015 at 9:08 pm
Sorry, I started typing before you posted. 🙂 I'll give that a shot.
Edit: Ok, that does give me a readable view, which I can then save to my Kindle Fire....
March 6, 2015 at 8:56 pm
A couple possible solutions:
1) Make a separate RSS feed, properly-ordered, for each Stairway. This would make it possible to read on any e-reader. (right now, trying to use the RSS...
March 6, 2015 at 8:35 pm
Viewing 15 posts - 1 through 15 (of 21 total)