Ive got a table something like
employee_identifiers
emp_pk id_desc id_type
-----------------------------------------
101 22222222 SSN
101 12345 DL
101 M Gender
101 509 height
101 185 weight
I want to create a view that gives me all of an employees identifiers
select * from v_emp_identifiers
emp_pk SSN DL Gender height weight
----------------------------------------------------
101 2222222212345 m 509 185
102 3333333313452 f 504 120
etc...
Ive been trying to do a subquery to do this, but I'm not having much luck.
Can somebody point me in the right direction.
employee_identifiers
emp_pk id_desc id_type
-----------------------------------------
101 22222222 SSN
101 12345 DL
101 M Gender
101 509 height
101 185 weight
I want to create a view that gives me all of an employees identifiers
select * from v_emp_identifiers
emp_pk SSN DL Gender height weight
----------------------------------------------------
101 2222222212345 m 509 185
102 3333333313452 f 504 120
etc...
Ive been trying to do a subquery to do this, but I'm not having much luck.
Can somebody point me in the right direction.