Skip to content
Advertisement

Tag: distinct-values

SQL query to CONCAT/list unique column data if rows have identical data in the other columns?

Thanks in advance. I’m basically trying to run a SQL query so that the results are 1:1:1:1:Many for StaffID:Name:Floor:Date:Shifts. Here is my initial query and example results: I then combined the ShiftStart and ShiftEnd columns with the following to get the further below results: What I can’t figure out to do next though is to combine Andrew’s shifts (and anyone

Advertisement