|
Archives of the TeradataForumMessage Posted: Mon, 22 Nov 2004 @ 10:48:51 GMT
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
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||