Re: Inserting Multiple DATE values into a column.
Knut,
[color=blue]
> Besides, you could write your own table function that takes a start and end
> date and calculates all the dates in between. Its trivial to implement and
> has a linear run time. For my personal taste, this would be much safer.[/color]
I think this is a matter of personal preferences. I have created a
permanent calendar table and populated it just once, then I added
indexes on it. It's being used all the time for frequently running
queries like "7 business days from now" or "how many people weren't
doing anything last Monday" and so on. I was considering a table UDF,
but that seemed to be re-doing one and the same work over and over
again many times every hour.
What do you think?
Knut,
[color=blue]
> Besides, you could write your own table function that takes a start and end
> date and calculates all the dates in between. Its trivial to implement and
> has a linear run time. For my personal taste, this would be much safer.[/color]
I think this is a matter of personal preferences. I have created a
permanent calendar table and populated it just once, then I added
indexes on it. It's being used all the time for frequently running
queries like "7 business days from now" or "how many people weren't
doing anything last Monday" and so on. I was considering a table UDF,
but that seemed to be re-doing one and the same work over and over
again many times every hour.
What do you think?
Comment