Thank you for the extra detail.
I first saw a table like that in the NGS IQ Query product.
Others here created our "business date" table used for reports
like commissions for month, quarter, semi-annual, annual.
As you say: fast and stable
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of D*B
Sent: Thursday, May 08, 2014 7:04 AM
To: Midrange Systems Technical Discussion
Subject: RE: can this reject bad data?
<snip>
? huddle formats ? - I guess could be a table with rows like:
'2014-05-08',20140508,140508,050814,2014128
But, that does not seem to fit with: *some 1000 records for 100 years* </snip>
One year has max 366 valid dates => 100 years have < 36600 valid dates. One record for every valid date would be sufficient. For every crude format, you would have a seperate column (other columns could be there for quarter, day of week, business week, egg week, what ever you would need. Joining this to your tables will be very fast in all situations...
D*B
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.