Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 190941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:17:56+00:00 2026-05-11T16:17:56+00:00

I have an application where the database back-end has around 15 lookup tables. For

  • 0

I have an application where the database back-end has around 15 lookup tables. For instance there is a table for Counties like this:

CountyID(PK)    County
49001       Beaver  
49005       Cache   
49007       Carbon  
49009       Daggett 
49011       Davis   
49015       Emery   
49029       Morgan  
49031       Piute   
49033       Rich    
49035       Salt Lake   
49037       San Juan    
49041       Sevier  
49043       Summit  
49045       Tooele  
49049       Utah    
49051       Wasatch 
49057       Weber

The UI for this app has a number of combo boxes in various places for these lookup tables, and my client has asked that the boxes list in this case:

CountyID(PK)    County
49035       Salt Lake
49049       Utah
49011       Davis
49057       Weber
49045       Tooele      
'The Rest Alphabetically

The best plan I have for accomplishing this is to add a column to each lookup table for SortOrder(numeric). I had a colleague tell me he thought that would cause the tables to violate 3rd-Normal-Form, but I think the sort order still depends on the key and only the key (even though the rest of the list is alphabetical).

Is adding the SortOrder column the best way to do this, or is there a better way I am just not seeing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:17:56+00:00Added an answer on May 11, 2026 at 4:17 pm

    I agree with @cletus that a sort order column is a good way to go and it does not violate 3NF (because, as you said, the sort order column entries are functionally dependent on the candidate keys of the table).

    I’m not sure I agree that alphanumeric is better than numeric. In the specific case of counties, there are seldom new ones created. But there is no requirement that the numbers assigned are sequential; you can allocate them with numbers that are a multiple of a hundred, for example, leaving ample room for insertions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database application in which a group is modeled like this: TABLE
I have a dotnet application with a Firebird Database back-end. I am planning to
i have inherited a database application from someone else and there are a few
I have a EDM (phoneDB) that models a back-end MSSQL database. I've developed a
I have this query which I want to run in my PHP application back
I'm working on a Delphi/WIN32 application that uses an SQL Server database as back-end,
I have a .NET application with a web front-end, WCF Windows service back-end. The
We have a .NET e-commerce application with a SQL Server 2005 back-end. A new
I have database application, I want to allow the user to restore the deleted
I have an application that is database intensive. Most of the applications methods are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.