I have a table with the name and date added.
How do I make a request so that the output contains names, the number of unique names,the minimum and maximum date of addition.
Here you get only the total number - I need for each unique name.
SELECT COUNT(namesh) AS count1
, MAX(dates) AS maxx
, MIN (dates) AS minn
FROM testtable11
WHERE namesh IS NOT NULL
When I add the namesh to SELECT I get "not a single-group group function"