EXPERT RESPONSE
The best example to explain this concept is your own:
SELECT SkillName
, SkillCode
, SUM(Beginner) AS Beginner
, SUM(Proficient) AS Proficient
, SUM(Experienced) AS Experienced
FROM yourtable
GROUP
BY SkillName
, SkillCode
To understand how this query works, you will need to do some
research on two concepts: GROUP BY and aggregate functions, specifically
SUM(). Every basic SQL tutorial or textbook will cover these concepts
in sufficient detail.
Good luck and welcome to the wonderful world of SQL.
|