Answer the question
In order to leave comments, you need to log in
How to retrieve information from a database?
How to display users aged 25+ for 2020 for each device.
Tell me good people)
Answer the question
In order to leave comments, you need to log in
Your question is not very clear. Therefore, I can assume that one of the following queries will help you:
SELECT
device_name,
COUNT(*) cnt
FROM users
WHERE
YEAR(created_date) = 2020 AND
year_of_birth < DATE_SUB(CURDATE(), INTERVAL 25 YEAR)
GROUP BY device_name;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question