Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 12 of 12 total
Thread Getting number of days that fall between a date range.
Wed, Aug 29 2007 5:59 PMPermanent Link

Phil Read
Thanks Robert and Tim for your answers... (muchly appreciated)

Yes of course Robert it's not the QUERY returning the wrong answer, its
my query not doing what I had planned.

And you're spot on with your analysis and by removing the aggregates as
you suggested, helped me see exactly where I was going wrong. I worked a
solution based on using SUM for the TransTotal and not for the
TotalNights into a memory table and then selecting / aggregate the data
from there.

Cheers Guys!
Thu, Aug 30 2007 3:59 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Robert

>Heresy. SQL always returns the "correct number". It's the question that is
>worng.


Nice one

Roy Lambert
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image