metaphilex
Instructor
Hi, all
FileA (each firm has two records)
firm1 rec1
firm1 rec2
firm2 rec1
firm2 rec2
FileB (each firm owned by two institutions)
firm1 ppf1
firm2 ppf1
firm1 ppf2
firm2 ppf2
I want to do a "firm x records x owner" expansion
(if the first field in each row of fileB is the same as the first element of a row in fileA, append the same-first-element row in fileA
to the end of the corresponding row in fileB, the result should be like below
firm1 ppf1 firm1 rec1
firm1 ppf1 firm1 rec2
firm2 ppf1 firm2 rec1
firm2 ppf1 firm2 rec2
firm1 ppf2 firm1 rec1
firm1 ppf2 firm1 rec2
firm2 ppf2 firm2 rec1
firm2 ppf2 firm2 rec2
Thank you,
Meta
FileA (each firm has two records)
firm1 rec1
firm1 rec2
firm2 rec1
firm2 rec2
FileB (each firm owned by two institutions)
firm1 ppf1
firm2 ppf1
firm1 ppf2
firm2 ppf2
I want to do a "firm x records x owner" expansion
(if the first field in each row of fileB is the same as the first element of a row in fileA, append the same-first-element row in fileA
to the end of the corresponding row in fileB, the result should be like below
firm1 ppf1 firm1 rec1
firm1 ppf1 firm1 rec2
firm2 ppf1 firm2 rec1
firm2 ppf1 firm2 rec2
firm1 ppf2 firm1 rec1
firm1 ppf2 firm1 rec2
firm2 ppf2 firm2 rec1
firm2 ppf2 firm2 rec2
Thank you,
Meta