Results 1 to 3 of 3
  1. #1
    snowb1sp19 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    2

    Ranking Data in SQL query

    Hello,

    I have searched and still can't quite get my query to work correctly. I need to assign a ranking in an Access query. I have a table with the following fields:

    Key - (represents a name for a manufacturing location)
    Rate - (represents a cost to move product from this location)
    Tier - (This is where I hope the rank to be)

    The Key will have multiple rates, for example:
    Key......Rate......Tier
    CA05US8Z.....500....1
    CA05US8Z.....600.....2
    CA05US8Z.....700.....3
    CA05US8Z.....800.....4

    I want to write a query that will rank the data (which would be saved in the Tier field).

    So if I add a filed to the table that is:
    Key.....Rate


    CA05US8Z.....550
    I would want that to bump the other Tier ranks down when I run the query.

    Does anyone know how the SQL would look to write this query?

    Thanks,

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664

  3. #3
    snowb1sp19 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    2
    I have searched, but none of them apply directly to my situation. The first one is ranking the data as though there is a primary key and I don't have that. The first link gives unique names, however my data has multiple names, but different rates. So for example:

    Key......Rate......Tier
    CA05US8Z.....500....1
    CA05US8Z.....600.....2
    CA05US8Z.....700.....3
    CA05US8Z.....800.....4
    US01USFD.....500.....1
    US01USFD.....600.....2
    US01USFD.....800....3

    I have multiple Keys, and its the rate i want to rank.

    Any help is appreciated,

    Kevin

Please reply to this thread with any new information or opinions.

Similar Threads

  1. query to summarize top ranking data
    By CMR in forum Queries
    Replies: 1
    Last Post: 09-17-2012, 02:08 PM
  2. Help with Ranking
    By Mbithy in forum Queries
    Replies: 3
    Last Post: 08-05-2012, 10:21 PM
  3. Ranking
    By mrbabji in forum Queries
    Replies: 1
    Last Post: 04-19-2012, 10:33 AM
  4. Ranking (Look for previous ranking)
    By leobear in forum Queries
    Replies: 3
    Last Post: 01-10-2012, 05:58 PM
  5. ranking: can i query a report?
    By stevepcne in forum Reports
    Replies: 2
    Last Post: 11-20-2011, 01:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums