Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

merging two tables on the basis of 2 keys in the second itab

$
0
0

hi

I have two tables such that the first gives the details of an employee such as his name,emp number,fathers name,date of birth etc. and a secondtable containing employee relations such as the  emp number,family member name (fathers name,mothers name,spouces name,childrens name).

i amtrying to display the employee number,name,fathers name,city along with the kind of relation,(that is the fathers name,the mothers name etc ) such that with every entry I get 4 results for each relationship (ie the father,mother,spouce and child).

however, my code only displays the fathers name..not any of the other relationships.

 

first tab has empno as the key

second tab had empno and relationid as the key where relationid is the kind of relationship(f for father,m for mother and so on).


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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