Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
dan963
Starting Member
3 Posts |
Posted - 2012-04-29 : 12:31:05
|
Hi,I have 3 tables and I'm trying to merge data from all 3 tables into a 2 column view and if anyone can help that would be great. I want the column names from Table B and Table C to be entered into the Field column in Table A and the rows from Table B and Table C to be entered into Table A's Value column.Table A: (2 column field and value)Details ValueID 1Employee No 123456Leaving Date 01-05-2012Leaving Reason 11Table B: (2 columns)ID Date Notified1 01-04-2012Table C: (a lookup table for Leaving Reason)Id Detail1 Early RetirementAll tables are joined by ID and I want to end up with a View:Field ValueEmployee No 12345Leaving Date 01-05-2012Leaving Reason Early RetirementDate Notified 01-04-2012ThanksDan |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|