So I have a table that looks like this:
User_ID | Job_Func
--------------------
Adams | DEV
Adams | NET_ENG
Brice | QA
Cohen | DEV
Cohen | NET_ENG
Cohen | SUPERVISOR
It needs to look like this
UserName | Developer | NetworkEngineer | QA | Supervisor
-------------------------------------------------------------------------
Adams | 1 | 1 | 0 | 0
Brice | 0 | 0 | 1 | 0
Cohen | 1 | 1 | 0 | 1
I've read up on Pivots and dynamic pivots, but the concept is throwing me off a bit. I don't need to Sum on Job_Func, but place it into a bucket where each user has a single row, as well as spit out custom column names.
I know there are only 4 Job Functions that need to be listed (possibly 5 in the future).
This will eventually go into view for reporting purposes.
Any help on this, or just pointing me in a good direction would be helpful.