mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-07 22:12:57 -05:00
22 lines
398 B
SQL
22 lines
398 B
SQL
select
|
|
"discordName",
|
|
"discordId",
|
|
"discordAvatar",
|
|
"discordDiscriminator",
|
|
"customUrl",
|
|
"inGameName"
|
|
from
|
|
"User"
|
|
left join "PlusTier" on "PlusTier"."userId" = "User"."id"
|
|
where
|
|
"discordName" like @discordName
|
|
or "inGameName" like @inGameName
|
|
or "twitter" like @twitter
|
|
order by
|
|
case
|
|
when "PlusTier"."tier" is null then 4
|
|
else "PlusTier"."tier"
|
|
end asc
|
|
limit
|
|
25
|