Hi
I want to be able to enter values in a table, then have a query (or queries that work together) to do the following:
1. Remove the duplicates from the table.
2. Display how many values there are of each value.
e.g for 1,5,6,2,8,6,1,2
1:2 5:1 6:2 2:2 8:1
Any tips for doing this?
Thanks in advance.
[Solved] A query which removes duplicates
[Solved] A query which removes duplicates
Last edited by beejayzed on Sat May 24, 2008 2:30 am, edited 1 time in total.
Re: A query which removes duplicates
Code: Select all
SELECT "Value", COUNT("Value") AS "How Many" FROM "Table" GROUP BY "Value" ORDER BY "How Many"
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: A query which removes duplicates
Thanks very much for the help.