For each line of colon-separated information in files 'empsal' and 'empname' whose first field matches in both files, output: first field of empname, second field of empname, fourth field of empname, and third field of empsal.
join -j 1 -t : -o 2.1,2.2,2.4,1.3 <(sort empsal) <(sort empname)