I have some data that looks like this:
Address| Location
123 Fake St | Kitchen
123 Fake St | Bathroom
123 Fake St | Bedroom
123 Fake St | Lounge
56 New Road | Kitchen
56 New Road | Lounge
12 Another Lane | Bathroom
12 Another Lane | Lounge
I need it to look like this:
123 Fake St | Kitchen | Bathroom | Bedroom | Lounge
56 New Road | Kitchen | | | Lounge
12 Another Lane | | Bathroom | | Lounge
How would I do this? I thought I needed to use PIVOT, but all the examples I've found use aggregates on numbers (sum of sales etc.)
Cheers!
Address| Location
123 Fake St | Kitchen
123 Fake St | Bathroom
123 Fake St | Bedroom
123 Fake St | Lounge
56 New Road | Kitchen
56 New Road | Lounge
12 Another Lane | Bathroom
12 Another Lane | Lounge
I need it to look like this:
123 Fake St | Kitchen | Bathroom | Bedroom | Lounge
56 New Road | Kitchen | | | Lounge
12 Another Lane | | Bathroom | | Lounge
How would I do this? I thought I needed to use PIVOT, but all the examples I've found use aggregates on numbers (sum of sales etc.)
Cheers!