Hi all—
I am new to SQL server and I am trying to concatenate 3 columns – one numeric and two character.
The 3 columns look like this to begin with:
SKILL_CATEGORY | CATEGORY_NBR | SKILL_TITLE |
A | 1 | Identifying Family Members and Support Systems |
B | 1 | Tracking the Sequence |
B | 2 | Searching for Exceptions |
B | 3 | Building Consensus with Families |
C | 1 | Family Level Outcomes |
C | 2 | Individual Level Outcomes |
C | 3 | Child Well Being Outcomes |
C | 4 | Outcome Steps |
The column I need to produce should look like this:
Skill |
A1: Identifying Family Members and Support Systems |
B1: Tracking the Sequence |
B2: Searching for Exceptions |
B3: Building Consensus with Families |
C1: Family Level Outcomes |
C2: Individual Level Outcomes |
C3: Child Well Being Outcomes |
C4: Outcome Steps |
This is the code which I have now which does not work:
SELECT
[new_EES].[dbo].[sbc_skills].[SKILL_CATEGORY]+CAST([New_EEs].[dbo].[sbc_skills].[CATEGORY_NBR])+[new_EES].[dbo].[sbc_skills].[SKILL_TITLE]ASvarchar(1))AS Skill
FROM [New_EEs].[dbo].[SBC_Skills]
Any assistance is greatly appreciated. Thanks!