Forum Replies Created

Viewing 15 posts - 616 through 630 (of 1,248 total)

  • RE: Remove String from column Post Code Field

    I don't know what your data looks like but that will only work for an eight character postcode. If you take the rightmost eight characters of your string you will...

  • RE: Remove String from column Post Code Field

    SELECT

    ltrim(right(postalcode,charindex(' ',reverse(postalcode),PATINDEX('% %',reverse(postalcode))+1)))

    FROM yourdata

    I've tested this over 14500 county+[space]+postcode combinations and the only ones it didn't work on were cases where there was no space in the...

  • RE: Remove String from column Post Code Field

    A correctly formed postcode can be 7 or 8 characters - eg SW1A 4WW so change RIGHT(PostalCode, 7) to RIGHT(PostalCode, 8) and LTRIM the result

    Postcodes can be 6,7 or 8...

  • RE: Remove String from column Post Code Field

    Pack_Star (9/8/2015)


    Hi,

    Most of the records in this column are correct i.e. NN4 0NB (two strings separated with a space), Then occasionally I return corrupt records i.e. Derbyshire S42 5BX (three...

  • RE: Columnstore Index metadata

    Eirikur Eiriksson (8/27/2015)


    Thank you for this interesting question Hugo.

    😎

    Slightly taken aback seeing the overall results though

    Correct answers:6%

    Incorrect answers:94%

    I suspect that's got something to do with how people have researched this....

  • RE: http://healthrxpuregarcinia.com/prolongz/

    Reported as spam

  • RE: Logical File Names

    Alvin Ramard (8/3/2015)


    Ed Wagner (8/3/2015)


    Sean Lange (8/3/2015)


    Again lots of complaining. Come on people get over it. The question of the day is intended to provoke some learning. Guess what, as...

  • RE: Logical File Names

    Sean Lange (8/3/2015)


    Again lots of complaining. Come on people get over it. The question of the day is intended to provoke some learning. Guess what, as humans we learn more...

  • RE: Logical File Names

    TomThomson (8/3/2015)


    Anyone who says "this is the most badly put together question I've seen for a long time" has clearly not looked at many Questions of the Day, and the...

  • RE: Data Warehouse Basics

    Reported as spam.

  • RE: Logical File Names

    Not only do none of the answers appear to be correct but the the explanation does not match the options.

    The correct answer is Query 2, with the MODIFY FILE option...

  • RE: BETWEEN alternative

    Have you thought about using <= and >=?

  • RE: Size of view

    SQLRNNR (7/27/2015)


    Toreador (7/27/2015)


    SQLRNNR (7/25/2015)


    Well, if the view does not exist or is in a different schema, then the third option is correct even though it truncated part of the error....

  • RE: Are the posted questions getting worse?

    Phil Parkin (7/27/2015)


    Brandie Tarvin (7/27/2015)


    TomThomson (7/26/2015)


    Grant Fritchey (7/26/2015)


    Managed to get a fully-loaded station wagon (four people plus bags) all the way up to 120MPH (195KPH) on the Autobahn.

    Don't get caught...

  • RE: Are the posted questions getting worse?

    It's home made quesadillas here. There may well be room for tequila 🙂

Viewing 15 posts - 616 through 630 (of 1,248 total)