Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 07 Jun 2002 @ 13:00:45 GMT


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


Subj:   Re: Derived table
 
From:   Mohommod Khan

How about some thing like this:

SELECT
     table1.ID
     DERIVED_TABLE.Y
 FROM
(
  SELECT distinct id,
description FROM table2
) AS DERIVED_TABLE(X, Y)
INNER JOIN  table1 ON  DERIVED_TABLE.X  = table1.id

God Luck!



     
  <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