John... Visio MVP said:
I have done it many times in various environments that go back to
mainframe DBs that predate SQL. It is a relatively simple concept, but
as you with any database concept, you do have to be careful and have
things well documented and understood by other developers you work with.
In another thread, Ken Snell gave a good example of how it could be done
in Access.
What you're thinking of is not nearly as complicated as what I'm talking
about. I rarely get accused of calling something simple difficult. By
complex, I mean complex, even to Ken Snell or to you or to me. By very
quickly, I mean very quickly.
Remember, I was talking about stevie, who has a copy/paste mentality and
usually does not grasp the concepts.
I think he accidentally got it more right than he intended, unless he
read my post from the past and thought, "Maybe if it's considered
difficult I won't get flamed." Anyway, the warning wasn't for "Steve."
I don't mind if he gets swamped because he underestimated the
complexity of the task. I understand that people need to be told that
"Steve" is not smart enough to do the job based on his posts

, but
lurking near this simple problem are complications you really don't want
to get involved with. Think in terms of half or full pages of SQL per
query once things get going. Who wants to maintain that? Then it
starts getting complex. To give you an idea, here's a link to the book
on temporal data using SQL that Jamie Collins cited:
http://www.cs.arizona.edu/people/rts/tdbbook.pdf
Just about the time I read the book I was given some temporal data to
implement. After seeing how quickly the queries became complex, and
having knowledge of where things were headed, I steered the process back
toward something simpler as soon and as tactfully as possible. Again,
if you see a similar situation developing, be careful. The warning is real.
James A. Fortune
(e-mail address removed)