I am trying to get a list of all entries in a database structure as below:
Company Address Phone Fax Email
Some companies have multiple entries with the same company name but different contact details.
Using the query
SELECT company FROM company GROUP BY company HAVING count(*) > 1 ORDER BY company ASC
Nicely pulls out all those that have more than one entry. However I also want those in the database with only one entry. Is it possible to have this in the same query ?
Cheers,