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 could use a form like this:
select * from user u where exists (select 1 from userType ut where u.code = ut.code and u.userType = ut.userType)