I have a question regarding how to merge lines with same characteristics:
I have this data:
Client | Product | Date
Hannah | TV | 1 Jan
Tom | Laptop | 3 Feb
Peter | iPod | 2 Jan
Hannah | Laptop | 5 Feb
Tom | iPod | 5 Feb
And I want to create this:
Client | Product-History|
Hanna | TV-Laptop |
Tom | Laptop-iPod |
Peter | iPod |
Anyone know if this is possible in SQL?
If you require actual SQL code to make it easier to respond let me know, it's the first time I ask a question.
Thanks!
Edit: I am using SQL Server