sendou.ink/app/db/models/plusSuggestions/tiersSuggestedFor.sql
2022-08-14 13:41:05 +03:00

15 lines
233 B
SQL

select
json_group_array("tier")
from
(
select
distinct "tier"
from
"PlusSuggestion"
where
"month" = @month
and "year" = @year
and "suggestedId" = @userId
order by
"tier" asc
)