Sql Query - Remove Commas Within Select Statement

I am running a SQL query on some customer data. Within my Select statement I ideally need to remove all commas.(I am not looking to update my source tables.)

Not certain how to do this on all fields and all columns, so any help or insight would be much appreciated.

If you need any additional information, please let me know.

Thank you,

Allison

2

1 Answer

I assume that you need to remove the commas in any of your data (in columns) and replacing the comma by a space

Select Replace(ColA,',',' ') as ColA, Replace(ColB,',',' ') as ColB ...
From

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest