I have three tables as below
I want to insert the column dep_typ in table 2 as selecting the column from table 1.
But the dep_typ
in table 2 has all 4 values as 'U' and whereas in table 1 it is three times 'U' and 1 time 'F'. I want the result to be as same as table 1.
The following will join the dep_type values from t1 with only the records from t2. Your data sample does not have any matching
ex_line
values common to t1 and t2. Is this true of the entire dataset? It if isn't true for the entire dataset, then @OldProgrammer is right - the join will not return the exact number of records in t1.