on-internet
← Community

SQL to Concat strings and then remove blank spaces

Stack Overflow ·

I am trying to work out how to concat multiple fields, removing any spaces between them and then comparing them to another value. I have the following fields : Address1, Town, County & Postcode. Basically i need these strings concatenated and then removing any white space etc. Can someone please show me how i would do this within my the following sql i have here: select distinct p.GtId, p.CrmPartyId, p.LegalName, p.BusinessClass, p.RmFullName, p.PbeFullName, p.OverallClientStatus, p.OverallRpStatus, a.AddressType from CORE.WeccoParty p join CORE.WeccoPartyAddress a ON p.GtId = a.GtId where exi

Comments

Sign in or sign up to comment and upvote.

No comments yet.