These are all very simple SQL statements. You should probably sign up for an SQL 101 course. Graeme Birchall has a really good SQL cookbook that you can read.
Here are a couple of the queries you are looking for:
1. select name, empno from employee a where empno like 'f%' and not exists (select 1 from employee b where a.name = b.name and b.empno not like 'f%')
2. select distinct name, empno from employee a where empno like 'f%' and 1 = select count(*) from employee b where a.name = b.name and b.empno not like 'f%')
Dave