Forum Replies Created

Viewing 15 posts - 5,281 through 5,295 (of 10,144 total)

  • RE: Adding comma separator to INT datatype

    Bill Talada (1/31/2013)


    If I purchase an application, I can use it any way I want to. I used to be an academic purist back when I first started in...

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (1/31/2013)


    BrainDonor (1/30/2013)


    jasona.work (1/30/2013)


    Now, you want a topic that would *really* generate some responses, start a Star Trek vs Star Wars topic,

    Babylon 5 or nothing.

    Blake's 7 was better....

  • RE: Max function without group by

    Bhuvnesh (1/31/2013)


    ChrisM@Work (1/31/2013)


    MAX() OVER (PARTITION BY...) might be more appropriate.

    New to me 🙂

    From BOL [Aggregate Functions (Transact-SQL)]: "The OVER clause may follow all aggregate functions except CHECKSUM."

  • RE: Proper way to concatenate values in a set from 1 column

    dwain.c (1/30/2013)


    ScottPletcher (1/30/2013)


    No, no syntax errors per se, but that method's not guaranteed to work safely either.

    Scott - Can you explain this?

    I understand that ordering may be an issue. ...

  • RE: Max function without group by

    Bhuvnesh (1/31/2013)


    Using ROW_NUMBER() with PARTITION .See http://msdn.microsoft.com/en-us/library/ms186734.aspx

    MAX() OVER (PARTITION BY...) might be more appropriate.

  • RE: Are the posted questions getting worse?

    Chad Crawford (1/30/2013)


    I have to share my excitement. I taught a class here at work to help employees prepare for the Microsoft 70-461 test. So far 6...

  • RE: URGENT T- SQL QUESTION. NEED HELP.

    Mr. Kapsicum (1/30/2013)


    ...

    i want my query to use BOTH ISNULL and COALESCE...

    Only homework would impose such a restriction.

  • RE: Turning Scan into Seek...

    How many rows in the table? How many rows are you returning? If you are returning more than say 25%* of the rows in the table, SQL Server may calculate...

  • RE: Strange Behavior In Insert

    chandan_jha18 (1/29/2013)


    ChrisM@Work (1/29/2013)


    chandan_jha18 (1/29/2013)


    ...

    Though it may sound simple, I need to find out why. Please come up with your inputs.

    Take away the unnecessary tables and use variables in the exact...

  • RE: Strange Behavior In Insert

    chandan_jha18 (1/29/2013)


    ...

    Though it may sound simple, I need to find out why. Please come up with your inputs.

    Take away the unnecessary tables and use variables in the exact same way:

    DECLARE...

  • RE: Nested replaces ?

    Abu Dina (1/28/2013)


    I have a one table which contains various noise words which I would like to remove from the company name field before I generate my phoentic code. The...

  • RE: Nested replaces ?

    Is it a "fixed" list? I guess what I mean by that is - would it be useful to you to have a function which contained the list definition, rather...

  • RE: Returning Selective numbers

    zahid_7777 (1/28/2013)


    nchar

    Thanks.

    WHERE RIGHT(ACTCODE,3) <> '000'

  • RE: Returning Selective numbers

    What datatype is actcode?

  • RE: Unexpected behaviour of query

    -- This looks correct:

    SELECT

    ERP_ID,

    customer_number,

    ANNUAL_CONTRACT_PRICE,

    [Rank]

    FROM (

    SELECT

    ERP_ID,

    customer_number,

    ANNUAL_CONTRACT_PRICE,

    ROW_NUMBER() OVER (PARTITION BY customer_number ORDER BY ANNUAL_CONTRACT_PRICE DESC) AS [Rank]

    FROM EMEA_SERVICEMAX.Servicemax.SERVICE_CONTRACTS_STG

    WHERE CONTRACT_START_DATE >= GETDATE()-730

    AND CONTRACT_STATUS_DESCRIPTION NOT IN ('Free','Canceled','Cancelled')

    ) a

    WHERE a.[rank]...

Viewing 15 posts - 5,281 through 5,295 (of 10,144 total)