Could you please make some comments on the following strange and complicated design. I want to continue with this design. It is an existing design and not created by me.
Employee
EmpID
-----
1
2
Attribute
AttributeID Name Visible
------------------------
1 Name 1
2 Age 1
3 Salary 1
EmployeeAttribute
EmpID AttributeID Value
-----------------------
1 1 Rauf
1 2 23
1 3 100000
2 1 Amal
2 3 50000
I want to select the above table as follows
EmpID Name Age Salary
-------------------------
1 Rauf 23 100000
2 Amal 50000
How can I do it in SQL Server 2008 ?