Results 1 to 2 of 2

Thread: Query Help

  1. #1
    Join Date
    Dec 2009
    Posts
    1

    Unanswered: Query Help

    Hi,

    I need small help to write the query

    I have a table with named as "assignment". there are 3 columns in that table.


    id restid offeruniquecode
    79 1 101
    79 1 102
    79 1 103
    79 2 201
    79 2 202
    79 2 203
    80 1 1010
    80 1 1020
    80 1 1030
    80 2 2010
    80 2 2020
    80 2 2030

    But we need to write the query with o/p like this

    id restid offeruniquecode rank
    79 1 101 1
    79 1 102 3
    79 1 103 5
    79 2 201 2
    79 2 202 4
    79 2 203 6
    80 1 1010 1
    80 1 1020 3
    80 1 1030 5
    80 2 2010 2
    80 2 2020 4
    80 2 2030 6

    Please help me in advance

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •