|
-
Jul 31st, 2003, 12:29 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] If sum = 0...don't show!
I have a qry which pulls all of the hours recorded by user, by task, by project. It processes extremely fast (6 seconds) considering how much data it pilfers through. That's because I'm doing the sums on the report (by user, by task, by project).
Now, here is the dilemma. If the sum of the hours for a task is 0, I don't want it to show on the report (and no whitespace residue...please). Same for a project...if the sum of hours for the project is 0...don't show and no residue.
I could put the logic into my sql, but then the performance hit would be unbelievable, since it would be calculating a sum for the entire project and the entire task for every row returned (and there are a lot of rows (one per taskid, per week, per user to be precise).
So, the question is, can I do this in the sql and avoid the performance hitch? Or, can I do this on the report somehow?
Thanks in advance.
Last edited by j_jewell; Jul 31st, 2003 at 12:57 PM.
-
Jul 31st, 2003, 12:56 PM
#2
Thread Starter
Hyperactive Member
[RESOLVED]
Nevermind...I just added a where clause to my SQL statement and all my problems are resolved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|