I have a table "kcionly" and I want to retrieve count of unique records for a field "ncom_1" in that table. I have another table "categories" with a field name category that just has numbers from 1 to 20.
I use the below query to get the count corresponding to values, 1,2,3,....
I always want...