in reply to Re^2: Typeless Relational Database
in thread Typeless Relational Database
SELECT ... FROM table WHERE DAYOFMONTH( NOW() ) = table.day_in_month
Your RDBMS should provide you with sufficient functions so as to make this unnecessary. And, though I don't have the reference in front of me, I'm pretty sure that Oracle does, just like MySQL and PostgreSQL both do.
Your second example is an optimization. Those are deliberate breakings of good practices (that reduce developer time) in order to gain in some other area (such as processor time). It's the classic tradeoff.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Typeless Relational Database
by etcshadow (Priest) on Jul 01, 2005 at 14:48 UTC | |
by dragonchild (Archbishop) on Jul 01, 2005 at 16:12 UTC |