Home Forums SQL Server 2012 SQL 2012 - General make over columns using comma seperated and select in query RE: make over columns using comma seperated and select in query

  • What you are doing does not make much sense. Perhaps you could post some sample data and your desired results and we can point you in the right direction.

    a couple things to note:

    First, having multiple columns based on the same entity is a bad design.

    Next, for better performance - if you have to combine columns like you are, consider using a hash key.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001