Accounts With No Contacts
Finds Accounts without related Contacts, often indicating incomplete or unused data.
SELECT Id, Name
FROM Account
WHERE Id NOT IN (
SELECT AccountId
FROM Contact
)
Duplicate-ish Accounts
Surfaces potential duplicates based on matching Account names.
SELECT Name, COUNT(Id)
FROM Account
GROUP BY Name
HAVING COUNT(Id) > 1