
PUZZLE 48 UNGROUPING 197
Mr. Lawrence finds a table like Sequence above very useful and also
frequently has a temporal table containing, say, every hour of a date/time
range. This can be used for similar queries such as selecting every hour
that someone was in the office when all the database contains is the start
and end times.
I like this answer, and the simple
JOIN should be faster than my
elaborate shuffle between two working tables. Mr. Lawrence was not the
only reader of my DBMS column to find a solution using this method.
Answer #4
Mary Attenborough also came up with the same solution, but her twist
was a novel way of generating the table ...