Set <String> accNames = new Set <String> {'Test%', 'Sample%'}; List <Account> accList = [SELECT Id FROM Account WHERE Name LIKE : accNames];
Set <String> accNames = new Set <String> {'Test%', 'Sample%'}; List <Account> accList = [SELECT Id FROM Account WHERE Name LIKE : accNames];