Answer the question
In order to leave comments, you need to log in
How to get unique column values and their number?
SELECT DISTINCT brand, age FROM products
with such a record, it gives me an object with 2 keys for brand and age, but I need their unique names in the trailer, and not uniquely grouped in pairs, because there is the uniqueness of the varieties of keys in 2 fields, which are often repeated in terms of brand names and age.
I also need their number.
SELECT DISTINCT brand, COUNT(brand) FROM products
With such a record, for some reason it displays {"brand":"Heinz","COUNT(brand)":162}
How do I get the unique field values and their number?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question