SELECT COUNT(*)
FROM USER_INFO
WHERE TO_CHAR(JOINED, 'YYYY') = '2021'
AND (AGE >= 20 AND AGE <= 29)
SELECT COUNT(*) USERS
FROM USER_INFO
WHERE TO_CHAR(JOINED, 'YYYY') = '2021'
AND AGE BETWEEN 20 AND 29
SUBSTR(TOCHAR(JOINED,'YYYYMMDD'), 3,2) = '21'