Forum Replies Created

Viewing 7 posts - 16 through 23 (of 23 total)

  • Reply To: NOT IN with OpenRowSet

    This almost works:

    WHERE ModelName0 NOT IN

    (

    SELECT value FROM String_Split(@Job_numbers, ',')

    )

    But when you run the query it builds a list, but after the first row there is space at the start...

  • Reply To: NOT IN with OpenRowSet

    sorry, I meant READ file not Create file

  • RE: For XML question

    Wow!  Very nice. 🙂

  • RE: PIVOT

    Yes it worked perfectly, and yes I have to invest more time into learning.  Your criticism is well placed.

  • RE: PIVOT

    This would work if I knew all of the CarTypes, but I don't.  Any ideas?

    SELECT Manufacturer, CarType1, CarType2, CarType3
    FROM
    (
     SELECT Manufacturer, CarType,
      'CarType' + CAST(ROW_NUMBER()...

  • RE: PIVOT

    Hi thanks,

    hmmm … this looks rather complicated.  I just need to make column into a row and the second column to stay a column.

  • RE: PIVOT

    Hi,

    My issue is that I " don't know the number of Manufacturers or Cartypes -...

Viewing 7 posts - 16 through 23 (of 23 total)