Hi Veeruu,
I would first recommend that you change your data structure a little.
I would recommend that your table skillset be amended to have skill sets a seperate record for each skill in the skillset.
SkillTable
SID Skill
--- -------
1 JAVA
2 ORACLE
3 C
4 C++
PersonSkillTable
SKID PID SID
---- --- ---
1 1 1
2 1 2
3 2 1
4 2 2
5 2 3
So you add a new row to this table for each skill instead of having a string holding the skill sets.
From here the queries are easy:
Code:
select PID, SID from PersonSkillTable order by PID
and
Code:
select ps.PID, s.Skill
from PersonSkillTable ps, SkillTable s
where ps.SID = s.SID
order by ps.PID
These will not give you a comma seperated list like you have shown but a recordset full of rows each one containing hte person id and one skill, this will be the better format for whatever user interface you will be using to display the data.
PS.Code Not tested for syntax, ask back if problem occurs
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================