Yeah, I guess that is it. However when I run this one I get the message that
trucn is not a recognized function name. I am using SQL Server.
And you want total counts by day ?
Something like this:
SELECT COUNT(LeadDistributionID) AS
totalLeadRec,trunc(DateInserted)
FROM LeadDistribution
WHERE (HttpReferer IS NOT NULL AND HttpReferer IN
('www.addmorecash.com')) AND DateInserted > '#dPreviousWeek#' AND
DateInserted < '#dToday#'
group by trunc(DateInserted)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241591
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54