Forum Replies Created

Viewing 15 posts - 751 through 765 (of 1,243 total)

  • RE: UK Post code Area

    Have you got spaces in all your postcodes?

  • RE: UK Post code Area

    c.simpson (1/26/2015)


    I would like to extract the first part of the post code.

    for example I have

    AA1 2BB

    A1 2B

    A4 2BB

    I would like my field to ready

    AA

    A

    A

    Thanks

    left(Postcode,patindex('%[0-9]%',postcode)-1)

    Does that do what you...

  • RE: Just an idea ...

    That definitely sounds like a good idea. We've got some tables that are 300-ish columns wide and I'd said at least at third of those are all nulls (don't...

  • RE: Today's Random Word!

    Ed Wagner (1/20/2015)


    djj (1/20/2015)


    Diagnostic

    Tune-Up

    Flat

  • RE: The Identity Limit

    Richard Warr (1/20/2015)


    I thought it was 10^38 - 1 which works for a DECIMAL(38,0) type. That's a much bigger number than the BIGINT type gives you.

    That's what I thought too....

  • RE: Today's Random Word!

    Stuart Davies (1/16/2015)


    Ed Wagner (1/15/2015)


    djj (1/15/2015)


    Ed Wagner (1/15/2015)


    SQLRNNR (1/15/2015)


    Ed Wagner (1/15/2015)


    Taxes

    @$!%#$!^#

    Gouge

    Excess

    Spend

    Thrift

    Store

  • RE: Today's Random Word!

    Ed Wagner (1/15/2015)


    ChrisM@Work (1/15/2015)


    Ed Wagner (1/15/2015)


    ChrisM@Work (1/15/2015)


    BWFC (1/15/2015)


    richxs (1/15/2015)


    Giraffe DBA (1/14/2015)


    SQLRNNR (1/14/2015)


    Ed Wagner (1/14/2015)


    djj (1/14/2015)


    BWFC (1/14/2015)


    Ed Wagner (1/14/2015)


    Stuart Davies (1/14/2015)


    TomThomson (1/13/2015)


    Ed Wagner (1/13/2015)


    SQLRNNR (1/13/2015)


    regex

    Pattern

    Match

    Point

    Edge

    Bono

    Sonny

    Cher

    Babe (i've got you ...)

    Ruth

    Sultan

    Swing

    Swap

    Meet

    Potato

    Gravy

    Train

  • RE: Today's Random Word!

    richxs (1/15/2015)


    Giraffe DBA (1/14/2015)


    SQLRNNR (1/14/2015)


    Ed Wagner (1/14/2015)


    djj (1/14/2015)


    BWFC (1/14/2015)


    Ed Wagner (1/14/2015)


    Stuart Davies (1/14/2015)


    TomThomson (1/13/2015)


    Ed Wagner (1/13/2015)


    SQLRNNR (1/13/2015)


    regex

    Pattern

    Match

    Point

    Edge

    Bono

    Sonny

    Cher

    Babe (i've got you ...)

    Ruth

    Sultan

    Swing

  • RE: Today's Random Word!

    Ed Wagner (1/14/2015)


    Stuart Davies (1/14/2015)


    TomThomson (1/13/2015)


    Ed Wagner (1/13/2015)


    SQLRNNR (1/13/2015)


    regex

    Pattern

    Match

    Point

    Edge

    Bono

  • RE: Lowest of a few dates

    I did think your question was over-thinking things with CASE statements in there. You're right, MIN() won't work. Can you post some sample data please? This...

  • RE: Lowest of a few dates

    Depending on what you're trying to to select MIN(datecolumn) will do it.

  • RE: Dynamic Query

    I should have been clearer about the potential risks, although I'll admit to forgetting completely about QUOTENAME.

  • RE: Dynamic Query

    In VERY simple terms:

    declare @tablename varchar(50) = 'YourTableName'

    declare @SQl Nvarchar(4000)

    set @SQL =

    N'select * from '+@tablename

    exec(@SQL)

  • RE: NULL Aggregates

    Koen Verbeeck (1/7/2015)


    Nice question, but I'd argue GROUPING doesn't ignore NULL values as well.

    That's what I took from BOL and got the question wrong.

  • RE: Date Table

    Ed Wagner (1/6/2015)


    CELKO (1/6/2015)


    You just have to adjust your baking time.

    You mean I have to use kiloseconds for a kilogram cake :w00t:

    Silly me - I still use minutes in...

Viewing 15 posts - 751 through 765 (of 1,243 total)