I have a column here which is a simple example of my problem
COLUMN1
1
2
How would I add the two numbers in COLUMN1
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re still not very clear on what you’re trying to do – if you want to SUM up the numeric values from your table, you can use something like this:
This will just sum up all the numeric values over the whole table.
Concatenating together all the non-numeric values is a bit trickier – you’ll have to use something like this
FOR XML PATH('')“trick” to get this done: