select o.project_id
, case o.object_type
when 1 then ‘filter (1)’
when 2 then ‘template (2)’
when 3 then ‘report (3)’
when 4 then ‘metric (4)’
when 6 then ‘autostyle (6)’
when 8 then ‘folder (8)’
when 10 then ‘prompt (10)’
when 11 then ‘function (11)’
when 12 then ‘attribute (12)’
when 13 then ‘fact (13)’
when 14 then ‘hierarchy (14)’
when 15 then ‘table (15)’
when 21 then ‘attribute id (21)’
when 22 then ‘schema (22)’
when 24 then ‘warehouse catalog (24)’
when 25 then ‘warehouse catalog definition (25)’
when 26 then ‘table column (26)’
when 28 then ‘property sets (28)’
when 34 then ‘users/groups (34)’
when 39 then ‘search (39)’
when 42 then ‘package (42)’
when 47 then ‘consolidations (47)’
when 52 then ‘link (52)’
when 53 then ‘table (53)’
when 56 then ‘drill map (56)’
when 58 then ‘security filter (58)’
else ‘OTROS’
end AS tipo
, o.object_name
, o.object_id
from dssmdobjinfo o
order by tipo