SQL 두 컬럼을 키로 하여 중복 데이터 검사

황제낙엽 2006.07.26 23:09 조회 수 : 86 추천:114

sitelink1  
sitelink2  
extra_vars5  
extra_vars6  
·미리보기 | 소스복사·
  1. select    
  2.     decode(   
  3.   
  4.         (select    
  5.             count(x1200)     
  6.          from    
  7.             web_data_req_send    
  8.          where    
  9.             c_index_no = 37280),    
  10.   
  11.         (select    
  12.             count(distinct x1200||'|'||x1289)     
  13.          from  
  14.             web_data_req_send    
  15.          where    
  16.             c_index_no = 37280),    
  17.   
  18.         1 ) rtnVal    
  19. from    
  20.     dual