PostgreSQL SELECT CASE нечувствительный
SELECT id
FROM groups
WHERE LOWER(name)=LOWER('Administrator')
Zwazel
SELECT id
FROM groups
WHERE LOWER(name)=LOWER('Administrator')