Viewing 12 posts - 1 through 12 (of 12 total)
Details details 🙂 Probably should have noticed that
July 25, 2011 at 4:43 pm
Thanks, I'll keep it in mind. Most of the reports that I run against this data typically starts with:
declare @periodid int
declare @dayofweekid in
declare @route varchar(10)
declare @pttrn char(2)
set....
So we should be...
July 25, 2011 at 4:25 pm
Yes, will do. I generally break the code down to all the subcomponents so I can see what's going on before implementing, so I'm definitely going to make sure...
July 25, 2011 at 1:22 pm
Lutz,
That works beautifully! Thank you so much. As for the static code with the case expressions, the problem is that I have some routes with about 70 stops on...
July 25, 2011 at 11:18 am
Thanks...thi sis starting to look good. I set up a scenario last night that was very close, but the stops were in the wrong order. Your example looks...
July 25, 2011 at 7:08 am
No problem...I look forward to it!
July 24, 2011 at 6:29 pm
Ok...spent some time to condense the tables to the absolute minimum and still have the sequences etc. Keep in mind that the sequence is not consecutive numbering; this is...
July 24, 2011 at 5:35 pm
Yes, I suppose it would be helpful to post the full DDL. The problem is that the database I'm using is very multi-faceted and takes a lot of...
July 24, 2011 at 3:53 pm
EDIT: Got it in the format I want, but hate the solution...
Here's an example of where I am so far. I know I have to convert my array of...
July 24, 2011 at 1:02 pm
Ah, sorry...Sort of. I've run a Row_Number() function to get a sequence, converted to varchar, then concatenated to the stopname in order to differentiate.
Ex:
Select convert(varchar(4), row_number() over (partition...
July 24, 2011 at 12:18 pm
Hi Lutz,
Thanks...I'll check out your link. To answer your question about hard-coding Route 202, LP, I'm guessing you mean that I would do something like this with the result...
July 24, 2011 at 9:33 am
Hi Steve,
Great article on the fn_gettimerangestamp. I've been using a date table for some time at a few people's suggestions for some a variety of issues at work. ...
July 12, 2011 at 12:06 am
Viewing 12 posts - 1 through 12 (of 12 total)