select i.RDB$INDEX_NAME what_index,
i.RDB$RELATION_NAME what_table,
r.RDB$CONSTRAINT_NAME what_constraint,
c.RDB$CONST_NAME_UQ refers_to_constraint
from rdb$indices i,
rdb$relation_constraints r,
rdb$ref_constraints c
where i.rdb$index_inactive = 0
and r.RDB$INDEX_NAME = i.RDB$INDEX_NAME
and r.RDB$CONSTRAINT_NAME = c.RDB$CONSTRAINT_NAME
and c.RDB$CONST_NAME_UQ='PK_SP_MAT'
order by 2 |