working on sql query in search by employee