Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT emp.id AS "Chapa"
- , INITCAP(REGEXP_REPLACE(name, '[[:space:]]+', CHR(32))) AS "Nome"
- , emp.status || ' - ' || (SELECT description FROM t_lookup WHERE source = 't_employee' AND locale_id = '1046' AND text = emp.status) AS "Status"
- , emp.menu_level AS "Grupo"
- FROM t_employee emp
- ORDER BY "Grupo", "Status";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement