Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 06 Jul 2006 @ 19:21:53 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Can query be simplified?
 
From:   Victor Sokovin

Could only test on Oracle:

     SELECT V.ID1
     FROM VINOD_2 V
     GROUP BY  V.ID1
     HAVING COUNT (DISTINCT V.LOCATION) = (SELECT COUNT (DISTINCT
     LOCATION_ID) FROM
     LOCATION);

Regards,

Victor



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023