397 B
397 B
-- 데이터사전에 없는 용어 사용 확인
select *
from table_items a
where ETT_GBN <> 'EAI_MDD'
and not exists (
select 'x'
from v_datadic b
where instr(a.CollumnID , b.item) > 0 )
-- 동일테이블 중복 항목 확인
select concat(TableID, CollumnID) as dup
from table_items
group by concat(TableID, CollumnID)
having count(concat(TableID, CollumnID) ) > 1