I have no idea at the moment how I can write this SQL statement for SQL Server.
I have 2 tables:
Customer:
ID | Name | Prename
----------------------
1 Miller Thomas
....
Steps:
ID | FK_customer | step | created
------------------------------------
1 1 A 2010-02-03
2 1 B 2011-09-12
....
If I try to join it, I get this:
Name | A_date | B_date
----------------------------------
Miller 2010-02-03 NULL
Miller NULL 2011-09-12
What I want is this:
Name | A_date | B_date
---------------------------------
Miller 2010-02-03 2011-09-12
Can anybody show me the light?