Мне нужно сделать что-то подобное в sql. Например:
CASE city
WHEN ["",""] THEN '[]', //if there is no city i must return '[]'
WHEN ["Paris",""] THEN '["Paris"]' // i just have to return [ "Paris"] instead of ["Paris",""]
WHEN ["Paris","Paris"] THEN '["Paris"]' // without duplicated values
ELSE 'other'
END
Как мне это сделать, пожалуйста?
Спасибо за вашу помощь