With the help of the present forum i have built a query that counts the most occurences:
Visits Plates
John 3
Jim 3
Deuce 3
Liza 3
Lenny 1
Lorry 6
And the query is :
select top 1 Plates, count(*)
from daTable
group by Plates
order by count(*) desc
So i find that the value with the emost occurences is 3.How can i delete now all the other values, that is :
Lenny 1
Lorry 6
Visits Plates
John 3
Jim 3
Deuce 3
Liza 3
Lenny 1
Lorry 6
And the query is :
select top 1 Plates, count(*)
from daTable
group by Plates
order by count(*) desc
So i find that the value with the emost occurences is 3.How can i delete now all the other values, that is :
Lenny 1
Lorry 6