Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Recursive query - forum topic by arbiswas

$
0
0

Hi Experts,
My table is like
EMPLOYEE_ID                 HR_ID
100                                    200
101                                    200
200                                    999
201                                    999
So requiement is if I want to see what are employee_id are available under HR_id 999 then it should give
EMPLOYEE_id              HR_id
100                              200
101                              201
100 (Via HR_Id 200)     999
101 (Via HR_Id 200)     999
200 (Direct)                  999
201 (Direct)                  999

Please help

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>