
February 3rd, 2013, 04:57 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 11
Time spent in forums: 1 h 56 m 23 sec
Reputation Power: 0
|
|
You need to use the limit clause - could be like this:
Code:
select count(site_id) as lastmonthcount
,capture_date
from sitehistory
group by capture_date
having capture_date=max(capture_date)
order by capture_date desc
limit 0,1
|