Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 22 Nov 2004 @ 10:48:51 GMT


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


Subj:   Re: Recursive queries
 
From:   Agarwal, Rachana

Hi Michael,

The query

"select department_no, empid, lastname, firstname, 'Employee' from emp_table where empid not in (sel mgr_id from manager_table) UNION ALL Select department_no, empid, lastname, firstname, 'Manager' from emp_table where empid in (sel mgr_id from manager_table) order by 1, 5 desc, 3 "


Will not fullfill my requirement as my table has only information about employee and supervisor id's.

No info about department no. is available.


Thanks and Regards,

Rachana



     
  <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