Skip to content
Loading
  • Rajanikant Hawaldar
    0
    1. select PartId,CodeTypeId,Code,PartLevel   
    2.  from #trades   
    3.  where PartId in (  
    4.     select PartId   
    5.     from (  
    6.         select count(*) num,PartId from #trades  
    7.         group by PartId  
    8.         having count(*) < 2  
    9.         ) t  
    10.  )  
    0