max(datetime) returning multiple dates per invoice # and line. how do I make it only return the most recent date or nulls? I’m working in Microsoft SQL Management Studio.