Viewing 15 posts - 2,431 through 2,445 (of 14,953 total)
That makes sense.
The way I do that is generate a "breadcrumb path" for each node, using a simple recursive CTE. Pad the parent IDs with leading 0s, and either...
December 29, 2011 at 6:51 am
Formatted:
SELECT cal.datevalue,
DATENAME(DW, cal.datevalue) day_of_week,
ISNULL(flowon.sum_flow_on, 0) flow_on,
...
December 29, 2011 at 6:39 am
Michael Valentine Jones (12/28/2011)
GSquared (12/28/2011)
Michael Valentine Jones (12/28/2011)
GSquared (12/28/2011)
Michael Valentine Jones (12/28/2011)
If there are no inserts/updates/deletes happening,...
December 29, 2011 at 6:33 am
David Moutray (12/28/2011)
December 29, 2011 at 6:26 am
ben.rosato (12/28/2011)
GSquared (12/28/2011)
December 29, 2011 at 6:23 am
Evil Kraig F (12/28/2011)
December 28, 2011 at 2:11 pm
drew.allen (12/28/2011)
GSquared (12/28/2011)
I'd prefer to see the query that gets a syntax error, and fix that first, and then worry about optimization and standardization next.
I don't think it's that easy...
December 28, 2011 at 1:52 pm
Are you in a position whereby you can "fall back and punt" on this?
This is definitely a case where a nested sets hierarchy will save the day performance-wise.
Here's some data...
December 28, 2011 at 1:50 pm
drew.allen (12/28/2011)
December 28, 2011 at 1:39 pm
Michael Valentine Jones (12/28/2011)
GSquared (12/28/2011)
Michael Valentine Jones (12/28/2011)
If there are no inserts/updates/deletes happening, then there are no...
December 28, 2011 at 1:35 pm
Hate to say it, but this is the Internet, and I don't open files that could contain auto-executable code from unknown sources.
Can you either post the code in the forum,...
December 28, 2011 at 12:52 pm
The usual:
SELECT columns
FROM tables/views/etc
WHERE criteria
ORDER BY columns
Can you post the stored procedure? If so, we can take a look at it and see if we can spot the error.
December 28, 2011 at 12:19 pm
Exactly.
But if data changes matter to the business, it might be worth digging into. Might not as well. Depends on what they need, why they need it, and...
December 28, 2011 at 11:25 am
Viewing 15 posts - 2,431 through 2,445 (of 14,953 total)