Forum Replies Created

Viewing 15 posts - 361 through 375 (of 1,250 total)

  • RE: Using OVER() to Remove Duplicate Rows

    Irfan.Baig (11/7/2016)


    Hello Dear Mike,

    I think we can also remove duplicates using simplest, easiest and better way without using temp table/s logic:

    WITH CTE_InsurancePolicy AS (

    SELECT PolicyId, FirstName, Surname, PolicyStartDate, PolicyEndDate

    ,ROW_NUMBER() OVER...

  • RE: Today's Random Word!

    djj (11/10/2016)


    Grumpy DBA (11/10/2016)


    Ed Wagner (11/10/2016)


    djj (11/10/2016)


    Grumpy DBA (11/9/2016)


    Manic Star (11/9/2016)


    Elephant

    Cage

    Claustrophobia

    Panic

    (at the) Disco

    Dead

    Parrot

  • RE: Today's Random Bombshell

    Apparently an orange turd with a straw comb-over has got a really important job somewhere. I can't quite understand it myself.

  • RE: Byte Me: DeleteDeleteDelete

    If they ever install that in our place, I'm doomed.

  • RE: update question

    Yes this is possible, as demonstrated below. But, this is an extremely simplified example that may not be appropriate for your situation. If you post some sample data...

  • RE: The Forever Technology War

    Gary Varga (11/1/2016)


    It seems a little worrying how many will not use the command line. I am not referring to your average citizen but your average IT professional. I have...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (11/1/2016)


    Hugo Kornelis (11/1/2016)


    BWFC (11/1/2016)


    I've got a barrel of cider maturing in the cellar, can I come?

    Just send the barrel. We'll review your application later. :Whistling:

    SECOND!

    All in favor?

    One barrel...

  • RE: Are the posted questions getting worse?

    ChrisM@Work (11/1/2016)


    Luis Cazares (10/31/2016)


    Sean Lange (10/31/2016)


    jasona.work (10/31/2016)


    Ed Wagner (10/31/2016)


    Sean Lange (10/31/2016)


    jasona.work (10/31/2016)


    ChrisM@Work (10/31/2016)


    Sean Lange (10/31/2016)


    ChrisM@Work (10/31/2016)


    Sean Lange (10/31/2016)


    Ed Wagner (10/31/2016)


    ThomasRushton (10/31/2016)


    Wryan138 (10/30/2016)


    So in lieu of some marvelous SQL wizardry, I'm...

  • RE: Are the posted questions getting worse?

    jasona.work (10/26/2016)


    Brandie Tarvin (10/26/2016)


    jasona.work (10/26/2016)


    Phil Parkin (10/26/2016)


    HanShi (10/26/2016)


    BLOB_EATER (10/26/2016)


    Lynn Pettis (10/25/2016)


    Spammers are getting better, now even the topics they post look legit.

    I liked Eric's response - "get a job you...

  • RE: Clownpocalypse and DR

    Gary Varga (10/26/2016)


    BWFC (10/26/2016)


    ...Maybe a longer date should have been chosen but when 01/01/2020 was picked, no one could have even remotely foreseen what happened subsequently and the situation in...

  • RE: Clownpocalypse and DR

    Gary Varga (10/26/2016)


    BWFC (10/26/2016)


    ThomasRushton (10/26/2016)


    Eric M Russell (10/25/2016)


    Marcia J (10/25/2016)


    I remember in the late 80's saying that the 2-digit year would be a problem and getting the message from other...

  • RE: Clownpocalypse and DR

    ThomasRushton (10/26/2016)


    Eric M Russell (10/25/2016)


    Marcia J (10/25/2016)


    I remember in the late 80's saying that the 2-digit year would be a problem and getting the message from other programmers, "So what?...

  • RE: How to get percent of total

    Here's another way to do it

    SELECT

    PtLanguage

    ,Abington

    ,CAST(ROUND(CAST(Abington * 100 AS DECIMAL(9,3)) /SUM(Abington) OVER(),3) AS DECIMAL(6,3))AS Percent_Abington

    ,BelmontSt

    ,CAST(ROUND(CAST(BelmontSt * 100 AS DECIMAL(9,3)) /SUM(BelmontSt) OVER(),3) AS DECIMAL(6,3))AS Percent_BelmontSt

    ,Bridgewater

    ,CAST(ROUND(CAST(Bridgewater * 100 AS DECIMAL(9,3)) /SUM(Bridgewater)...

  • RE: How to get percent of total

    What do the numbers for each surgery represent? I'm assuming they are the counts of patients speaking each language.

  • RE: Today's Random Word!

    Ed Wagner (10/21/2016)


    djj (10/21/2016)


    Stuart Davies (10/21/2016)


    Ed Wagner (10/20/2016)


    TomThomson (10/20/2016)


    Ray K (10/20/2016)


    Revenant (10/20/2016)


    Penny

    Nickel

    Nickelodeon

    Cartoon

    Strip

    Stripper (as in paint)

    Scrape

    Shell

Viewing 15 posts - 361 through 375 (of 1,250 total)