Select alias1.*
From table inner join (
Select 'A1' As Line, 626 as Code
Union All
Select 'A1', 628
Union All
Select 'B2', 411
) alias2 ON alias1.Line = alias2.Line AND alias1.Code = alias2.Code
{ Edit: removed redundant column names. }
It seems not to be the case in Zachary's example. Multi-column primary keys are common and very much compliant with first normal form on modern databases (that support multi-column constraints).