You can join the information and compare the Performance with Avg
select Employee, JobPosition, [Performance Score], [Ave. Performance]
, case
when Emp.[Performance Score] >= [Ave. Performance] then 'Meet'
else 'Does not meet'
end AS PerfResult
from Emp
inner join Perf on Perf.JobPosition = Emp.JobPosition
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.