Forum Replies Created

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

  • Reply To: How to rank the records

    Yes Sir, Dense rank does skip the consecutive numbers.

  • Reply To: How to rank the records

    Awesome

  • Reply To: How to rank the records

    Thanks SSCU guru point taken.

    I ran the query and it s returning

    rank1

     

    What I am looking for is , I want to rank orderno within each item category

     

  • RE: get date by rank

    jcelko212 32090 - Friday, March 23, 2018 10:17 AM

    Angela4eva - Wednesday, March 21, 2018 9:06 AM

    March 23, 2018 at 12:46 pm

    #1984451

  • RE: get date by rank

    GilaMonster - Wednesday, March 21, 2018 10:36 AM

    Using Pietlinden's sample tables above (thanks), this looks like it should give what's wanted.

    [code...

  • RE: get date by rank

    GilaMonster - Wednesday, March 21, 2018 10:22 AM

    If they're datetimes (not strings) it won't matter to SQL what they are. I'm not...

  • RE: get date by rank

    GilaMonster - Wednesday, March 21, 2018 10:10 AM

    So for both of these, it should return the 3rd Feb?

    (22, 200, 2, '01/01/2018')
    (53, 90,...

  • RE: get date by rank

    pietlinden - Wednesday, March 21, 2018 9:46 AM

    Looks like this worked...
    use tempdb;
    GO

    CREATE TABLE PayDates(PayDate DATE PRIMARY KEY);
    GO
    INSERT INTO PayDates(PayDate) VALUES...

  • RE: Spilt a record into 4

    this is awesome thank you

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