select count(a.url) counter, a.url from
(select distinct * from wap_log_20090507
union
select distinct * from wap_log_20090506
) a group by a.url
(select distinct * from wap_log_20090507
union
select distinct * from wap_log_20090506
) a group by a.url