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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:04:38+00:00 2026-06-18T10:04:38+00:00

I am trying to design a database that stores the following: – Franchise Name

  • 0

I am trying to design a database that stores the following:

- Franchise Name (string)
- Employee Count (integer)
- Locations (zip-code)

The problem I am having is the potential size of the database (all potential franchises, as well as locations) and how to design the database so that the zip-codes for a specific franchise can be stored in the same cell. Is this possible to have a cell that has something like “95432, 12345, 92534, 68723” and can be queried and modified to add or delete zip-codes with a query? I want to be able to regularly do something like:

SELECT franchiseName
FROM database
WHERE zipCode = "12345"

and then obviously, display all franchises that have a location in that zip-code. I wouldn’t want to create a separate tuple for each zip-code right? Wouldn’t something like:

Pizza Hut, 23, 95432
Pizza Hut, 12, 12345 
Pizza Hut, 07, 92534 
Pizza Hut, 15, 68723

be considered bad design because of the potential number of duplicate Franchise names? (imagine McDonald’s alone)

Any help is appreciated

  • 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-06-18T10:04:40+00:00Added an answer on June 18, 2026 at 10:04 am

    Basically you’re defining a many-to-many relationship. The common practice in this situation is to work with a table containing all the Locations and a mapping table. This mapping table contains the id of the franchise and one of the location. Using joins, you could get all the information you need and there would be no data duplication.

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

Sidebar

Related Questions

I'm trying to understand how to design a database that can accommodate an indeterminate
Im having difficulty trying to design a database structure for the following scenario: My
I am trying to design a database to ease with my grading process. I
I'm trying to design a database to record game histories for a game I'm
I'm trying to build out a mysql database design for a project. The problem
I am trying to design a dropdown menu that covers the entire width of
I've got a database that stores hash values and a few pieces of data
I'm trying to design a MySQL database to store user zipcode preferences for providing
I'm about to start a Database Design that will simply manage users under companies.
I have an App that I am trying to design the data model for.

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.