• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 616
  • Last Modified:

Ranking Query Results in Access 2003

Hi experts,

We need to be able to rank query result in Access 2003. The ranking should always span ranks 1-23, as we rank metrics for 23 countries (currently we're looking at creating a ranking query per metric we rank).

Fore some metrics we sometimes don't have transnational data for all countries, however I still would like for them to show up at the end of the ranked list (the full list of 23 countries is available in another table). Ranks should be in descending order, not skipping positions (e.g. if there's a tie, the next rank should be the next in sequence and not skip).

I'll post the SQL I'm currently using for the ranking query in a bit, however was wondering for a solution that solves the above problem of 'missing country values' and still including these countries in the ranking.

Thank you!
1 Solution
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I think this article should help to implement it:

for the "missing data", your logic needs to be like this in the query:
FROM country_table_list cl
LEFT OUTER JOIN metrics_table mt ON ( cl.country_id = mt.country_id  )
fitalianoAuthor Commented:
Thanks! Works.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now