Condensing data in multiple rows down to a single row based on a unique identifier