metabib.record_attr_id_map (view)
|
This is a database view, not a base table. It has no triggers, indexes, or FK constraints of its own. Querying this view may be more efficient than joining the underlying tables directly. |
View Definition
SELECT uncontrolled_record_attr_value.id,
uncontrolled_record_attr_value.attr,
uncontrolled_record_attr_value.value
FROM metabib.uncontrolled_record_attr_value
UNION
SELECT c.id,
c.ctype AS attr,
c.code AS value
FROM config.coded_value_map c
JOIN config.record_attr_definition d ON d.name = c.ctype AND NOT d.composite;