Searching generally means finding one particular item in a list. If you are looking for everyone who worked overtime, or all items that need to be reordered, this is referred to as an exception report, not a search.
An exception report is straight forward: loop through every item: if it matches the criteria, print it out.