Is it possible to include in a IN clause multiple fields? Something like the following:
IN
select * from user where code, userType in ( select code
You can either use joins
SELECT * FROM user U INNER JOIN userType UT on U.code = UT.code AND U.userType = UT.userType