I have a Table that looks like this
MAC-ADDRESS | ACCESSPOINT | TIMESTAMP
Data is pushed into the table by all the Accesspoints at 15 minutes intervals.
I want to run a query to tell me the MAC-Addresses that have appeared on more then one Accesspoint withtin a given datim range ?
select mac,count( distinct name) as occ from
(Select
mac,namefrom maclistwhere
datimbetween “2011-07-08 00:00:00” and “2011-07-14 23:59:59”group by name,
macorder by mac)as tmo group by mac having occ>1;
This worked for me