|
Posted by --CELKO-- on 02/07/06 05:21
>> What I'm trying to do is for each pay period find which of the employees submitted a timesheet and which they were late (and if they were late, how many of them). <<
Where is the payperiod table in your data model??
>> No idea why that makes such a difference.. <<
Because your schema design is a pile of crap?? Duh!
Wild Idea! for uou Please post DDL, so that people do not have to
guess what the keys, constraints, Declarative Referential Integrity,
data types, etc. in your schema are. Sample data is also a good idea,
along with clear specifications. It is very hard to debug code when
you do not let us see it.
Newbies think that DDL is not as important as DML. They assume they
can "repair" a bad schema in code. You cannot. Ever. The best you can
hope for is a horrible nested sert of joins, like Sommarskog posted.
Do you want ot do it right or just kludge and patch it?
Navigation:
[Reply to this message]
|