Hi i have two tables Agents, Skills and target query as below
Agents
-------------------------------------
PF |Name |HireDate |
---------|-----------|---------------|
54 |Jack |01-Jan-2012 |
55 |Aline |01-Jan-2012 |
-------------------------------------
Skills
-------------------------------------------------------------
PF |Writing |Swimming |KickOff |Shopping |
---------|-----------|---------------|-----------------------
54 |Null |01-Dec-2012 |Null |Null |
55 |01-Mar-2012|01-FeB-2012 |Null |15-Nov-2012|
-------------------------------------------------------------
I want query to select PF, Hiredate from Agents table and avaliable skills from skills table, The date on skills tables means that agents learned this skill on this data, but if there is null value that means agents didn't have this skill, but i want to replace date with column name The below table explane what is my query
MyQuery
------------------------------------------------------
PF |HireDate |Avalivble skills |
---------|---------------|----------------------------|
54 |01-Jan-2012 |Swimming |
55 |01-Jan-2012 |Writing, Swimming, Shopping |
------------------------------------------------------
SQL Server?MySQL?Oracle?DB2? etc...