See this query which will give the value with the highest count.(most replicated value)
Code:
SELECT Table1.myField, Count(Table1.myField) AS CountOfmyField
FROM Table1
GROUP BY Table1.myField
ORDER BY Count(Table1.myField) DESC;
This is based on a Table TABLE1
with fields
ID autonumber PK
MyField Number
MyField valued as per your sample.
Result:
myField |
CountOfmyField |
7000 |
12 |
2000 |
10 |
9000 |
9 |
7500 |
7 |
You can do it with one query if you modify the previous example to
Code:
select top 1 * from
(SELECT Table1.myField, Count(Table1.myField) AS CountOfmyField
FROM Table1
GROUP BY Table1.myField
ORDER BY Count(Table1.myField) DESC);
to give this result
Code:
myField |
CountOfmyField |
7000 |
12 |