I'm trying to use a SELECT DISTINCT to find out how many people have cars, how many have boats, now many bikes and so on, from this table
| name | obj |
---------------------
| john | car |
| mary | boat |
| dave | car |
| james | bike |
| steve | car |
| walt | bike |
ex: bike - 2
select distinctworks on a row-basis. it's not filtering for distinct field contents. you need aselect obj, count(obj) ... group by objinstead.