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 3942312
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:38:51+00:00 2026-05-20T00:38:51+00:00

I have to create a database that will store a huge amount of people

  • 0

I have to create a database that will store a huge amount of people along with their addresses, that will have to be searchable by place (i.e. find people in that or other city).

I am doubting whether I should keep the city field in the address as simple varchar or create a city table and refer to it, to avoid duplicate city names etc.

Note: I am using SQL-Server and will access the data via EF.

  • 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-20T00:38:51+00:00Added an answer on May 20, 2026 at 12:38 am

    Background

    Authority table – a reference table that contains the possible values for the “thing” for which it is an authority. For example, a Country authority table would contain all possible values for country.

    An Answer

    Depending on your definition of “huge amount …” you definately will want to have some authority tables.
    Based on the geographic range of your addresses, some or all of these seem like a good start for your authority tables:

    1. Country – if you allow addresses in more than 1 country, it seems like a good thing to have as an authority table
    2. State (or province) – nations are broken into provences and/or states. These are a good candidate for an authority table.
    3. City – cities are (mostly) fixed entities that have a defined name. Another candidate for an anthority table. This should include towns, villages, cities, and other (rural residents may not live in a city, village, town, or anything else).
    4. Street Name – streets have names (or numbers) that are (mostly) fixed. This is a candidate for an authority table. Street name will depend on a combination of city, state, and country to make it unique. For example City “Blah” may have a street named “Mainne” while city “NotBlah: may not have a street named “Mainne”
    5. Postal Code (zip code in the USA) is a likely candidate for an authority table. For example, there is no zip code 00001 in the USA.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database that will store an HTML tagged text to retain formatting
I have a SQL2005 Express database that I would like to create a copy
Let's say that I have a SQLite database that I create in a separate
I have information stored in a database that I want to use to create
i have DataBase function that calculate distance by coordinates CREATE OR REPLACE FUNCTION distance(lat1
I have a script that parse the database and create php classes to work
I have an Android application that uses the Android database to create tables and
I have a database called ADB. When I create a new user/role, that user
I need to create a procedure that will store data into 3 tables, while
I have to create an application in PHP which will store the phone contacts

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.