I have a table EmpAccess with EmpID (datatype BigInt) and in another field
(same table) have the access levels (datatype Int). So if an employee has more than 1 access level (which is possible up to 3 out of 156) there will be 1, 2, or 3 records for the same employee. I am trying to show the resultset per employee.
This is what I have:
empID accesslevel
1234 102
1325 100
1234 100
1234 111
1222 123
This is what I need my result set from a Select statement to look like:
empID accesslevel1 accesslevel2 accesslevel3
1234 102 100 111
1325 100
1222 123
Thanks,
Eric Cruz
(same table) have the access levels (datatype Int). So if an employee has more than 1 access level (which is possible up to 3 out of 156) there will be 1, 2, or 3 records for the same employee. I am trying to show the resultset per employee.
This is what I have:
empID accesslevel
1234 102
1325 100
1234 100
1234 111
1222 123
This is what I need my result set from a Select statement to look like:
empID accesslevel1 accesslevel2 accesslevel3
1234 102 100 111
1325 100
1222 123
Thanks,
Eric Cruz
Comment