Forum Replies Created

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

  • RE: Pivot table for Microsoft SQL Server

    Thanks! I have been looking for a way to replicate pivots on our old SQL environments and this works quite nicely =)

  • RE: replacing nulls

    Right you are! It was copying the datatype of char (12) from the original table and that was causing the spaces :w00t:

    Cheers!

  • RE: replacing nulls

    Can I use charindex to do this?

  • RE: replacing nulls

    oh and replacing spaces with full stops:

    data1.......data2.data3.....data4...

    data1..data2.......data3..................data4...

    data1....data2..........data3..data4...

  • RE: replacing nulls

    Yeah, I'm at work so wasn't too sure about sensitive data etc.. I have attempted to desensitise it:

    select

    identity(int, 1,1) as row_no

    , col1

    , col2

    , col3

    into #1

    from table20

    where col1 between '2010' and...

  • RE: replacing nulls

    Okay I did put uneven spacing but this text editor seems to have formatted it for me!

  • RE: AWD SQL - Getting a single value returned when using > on 2 columns

    That's it yes, I think that actually answers my question though - it was my logic that was wrong!

    Will have another go at it. Ta very much

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