> I want to bring back a record for the date that does not have any records.

If you re-read that, it sounds like you want to magically invent data
out of thin air? :P


Do you mean that, in addition to currently returned data, you also
want to include records that have a null/unknown date value? (So
they're not in the specified range, but they're not outside either.)

If so, you just need to do an OR inside parentheses:

SELECT <columns>
FROM dailyActivity
WHERE traxUserID = XXXXXX
AND (
      reportDate BETWEEN '2010-10-09' AND '2010-10-12'
    OR
      reportDate IS NULL
    )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/sql/message.cfm/messageid:3397
Subscription: http://www.houseoffusion.com/groups/sql/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/sql/unsubscribe.cfm

Reply via email to