I have three tables
1.Equipment
EquipmentID EquipmentName Manufacturer
1 Aircoditiner LG
2 Refregerator Whirlpool
3 Router Cisco
2. Attributes
AttributeID AttributeName
1. Color
2. YearofManufacture
3. EquipmentAttributes
EquipmentId AttributeId Value
1 1 White
1 2 1998
2 1 Red
2 2 2000
3 1 Black
3 2 2001
I want to get a result like this
EquipmentID EquipmentName Manufacturer Color YearofManufacture
1 Aircoditiner LG White 1998
2 Refregerator Whirlpool Red 2000
3 Router Cisco Black 2001
How can i write a query to get a result set like this connection the above
three tables ?
I cant add the Attributenames to the Equipment table coz the attribute name
is a variable. A new attribute can be added later. Please help
Thanks in Advance
Baiju