I have a table like this: field1 ----- A A B C D D D E I want to make a query to produce a result like this: A 2 B 1 C 1 D 3 E 1 that means I want to DISTRINCT field1 and count total row for particular letter. What will be the query?