QUESTION POSED ON: 16 July 2008
Suppose there is a table as below:
SkillName SkillCode Beginner Proficient Experienced
Java 001 2 0 0
Java 001 0 3 0
Java 001 0 0 1
The above table suggests that for the skill Java, there are 2
Beginners, 3 Proficient and 1 Experienced people. I need to write a
query which will query the above table and retrieve the results in
the form given below, combining the rows:
SkillName SkillCode Beginner Proficient Experienced
Java 001 2 3 1
Can you explain me as to how to go about this?
An example would be much better. Thanks in advance.
|