select isiha.isino,isida.isino,isida.iprod,isiha.deppd
from isiha
join isida on isiha.isino= isida.isino
and isida.isino in (
'U110503-018',
'U110503-018',
'U110503-039',
'U110503-039',
'U110504-002',
'U110504-002')
and iprod in ('GCJA2',
'GCJA2',
'HAEC4',
'HAIB4',
'HAIB4',
'HAIB6')
Tag : Ms Access, MySQL, Ms SQL Server 2005, Ms SQL Server 2008, Oracle