handle data which contains space

  • Hi all,

    I am having table JobDetail whcih contains jiobname as a one of column.here the data entered from front end is not correct because of space issue.

    for example if job name is Software engineer then it might be entered single space or sometimes multiple spaces between "Software" & "engineer". but while selecting i want only once.I am using distinct but giving wrong output. Please suggest any idea.

    thanks

    Abhas

  • You can first cleanse the data by replacing the multiple spaces by one.

    This article has an excellent method on doing this efficiently:

    REPLACE Multiple Spaces with One[/url]

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply