Viewing 15 posts - 4,621 through 4,635 (of 5,685 total)
Sounds like standard org chart recursion.
Have a gander on the intertubes for 'Recursive CTE'. That'll handle most of your question.
If you'd like some tested code, please check out the...
December 9, 2010 at 4:02 pm
GilaMonster (12/9/2010)
dso808 (12/9/2010)
That's all that was returned. Interesting - what do you think?
Read my last post.
I do not recommend this approach. Take a look at the method on my...
December 9, 2010 at 3:58 pm
Yes, partitioning is actually your best bet here, but you have to partition on the date column in the table...
... which leads me back to a different issue. When...
December 9, 2010 at 3:51 pm
Just drop it to a variable and use it from there:
CREATE TABLE #tmp ( tID INT IDENTITY( 1, 1), tValue VARCHAR(10))
Declare @LastID INT
INSERT INTO #tmp (tValue) VALUES ( 'Oscar')
SET @LastID...
December 9, 2010 at 3:49 pm
Aaron Prohaska (12/9/2010)
Can you please explain how this query works?...
December 9, 2010 at 3:47 pm
LutzM (12/9/2010)
December 9, 2010 at 3:35 pm
GilaMonster (12/9/2010)
December 9, 2010 at 3:28 pm
Sorry, swung in, saw that the sample data wasn't consumable (do read that link, it explains why), meant to come back and forgot. Btw, the second set of sample...
December 9, 2010 at 2:36 pm
Gail as usual is more thorough than I am. 🙂
Can you do me a flavor, and the one where it says 'date' isn't a column name, just commment out the...
December 9, 2010 at 2:24 pm
G'dang... that Lookup component is QUICK. It almost keeps up with the import itself. (175k rows/file, * 6 files, under 2 minutes)
Great recommendation, that's one headache out of...
December 9, 2010 at 1:41 pm
dso808 (12/9/2010)
--...
December 9, 2010 at 1:33 pm
dso808 (12/9/2010)
December 9, 2010 at 12:59 pm
dso808 (12/9/2010)
"Note: you might have to do some conversion for the date fields if required nad >= nad <= condtion...
December 9, 2010 at 12:37 pm
Stefan Krzywicki (12/9/2010)
December 9, 2010 at 12:17 pm
Viewing 15 posts - 4,621 through 4,635 (of 5,685 total)