I'm running queries on a single table.
example
SELECT firstName, COUNT(*) as num_bob
FROM DataTable
WHERE firstName= "bob"
A query similar to the one above takes a long time. The database/table does not use indexing and all the data is stored in a single table. Is there a way to rewrite this query to improve performance?
Thanks!