I have a scenario as follows:
Table User ID User viewname Description 1 JamesId employeeview This is a employee 2 FredId employeeview This is a employee 3 NickId managerview This is a manager
Table properties ID key value user_ref 1 name james 1 2 phone 88888888888 1 3 email [email protected] 3 4 name fred 2 5 phone 555555555555 2
I need to create views as following:
EmployeeView Id empId name phone Description 1 JamesId james 88888888888 This is a employee 2 FredId fred 555555555555 This is a employee
ManagerView Id empId email Description 1 NickId [email protected] This is a manager
properties table is a extension to User table where everything is stored as key value pair. Views need to be created dynamically using the above two tables. Properties table is dynamic.
Is it possible to generate such view. Can someone give a example to do it.