Skip to content
Advertisement

Add single quotes to results in a column from a SQL query

So I currently have the following SQL:

which returns the following results:

I am trying to achieve the following:

I have tried the following:

but this does not work.

I do not want to update the column, or use any @declare functions as this. I am currently using SQL server 2008. Im not sure how to go about this. Help?

Advertisement

Answer

If you are using SQL SERVER then modify your query according to below :

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement