I have a column that contains items like
'absolute root'I tried:
select sti.description, sc.description from scene_thing_instances sti join scenes sc on sti.scene_id = sc.scene_id
order by CASE sc.description
when (sc.description = 'absolute root'::text) then 1
when (sc.description ilike 'root%') then 2
else 3
END;
I was starting with this, and was going to add perhaps another case statement.
LINE 3: when (sc.description = 'absolute root'::text) th...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
This is 9.2.
Susan