Filter Account names
WHERE keeps rows that meet a condition.
Your task
Build a LIKE pattern and return only this run's Accounts whose names start with North.
String tag = 'AS-Q302-' + UserInfo.getUserId() + '-' +
String.valueOf(Datetime.now().getTime());
List<Account> seeded = new List<Account>{
new Account(Name = tag + '-Northwind'),
new Account(Name = tag + '-Northstar'),
new Account(Name = tag + '-northbay'),
new Account(Name = tag + '-Southwind'),
new Account(Name = tag + '-FarNorth')
};
insert seeded;
List<Account> matches = new List<Account>();
System.debug('Filter count: ' + matches.size());
System.debug('Filter lowercase included: false');
System.debug('Filter exclusions: false');Requirements
Filter count: 3should be built from the query resultName LIKE :northPatternshould be presentFilter count: 3should be printedFilter lowercase included: trueshould be printedFilter exclusions: trueshould be printed