You need to use an operator that guarantees that only one record will be returned -- even though you specify the employee number, and YOU know it will only return a single record, the database engine does not.
use MAX(Gender), or something like that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.