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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:12:23+00:00 2026-06-16T13:12:23+00:00

This is my first project outside of school so I’m rusty and lacking practice.

  • 0

This is my first project outside of school so I’m rusty and lacking practice.

I want to create a database but I’m not sure if I’m doing ok so far. I need a little help with the reports table.

The situation:

  • The food bank has multiple agencies who hand out food
  • Each agency has to submit a report with how many families/people served from a long list of zip codes.
  • I thought of putting a fk on Report to Zips table. But will that make selecting multiple zips impossible?

Maybe I’m way off base. Does someone have a suggestion for me?

enter image description here

  • 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-16T13:12:25+00:00Added an answer on June 16, 2026 at 1:12 pm

    A better name for this table might be FoodService or something. I imagine the kind of reports you really want to end up are not just a single row in this table, so naming it Report is a bit confusing.

    In any case, each Report is the unique combination of {Agency ID, ZIP code, Date} and of course Agency ID is a foreign key. The other columns in this table would be number of families and people served, as you’ve indicated. This means you’ll have rows for each agency-ZIP-date combination like this:

    Agency   | ZIP   | Date   | FamiliesServed | PeopleServed
    Agency A | 12345 | Jan-12 | 100            | 245
    Agency A | 12340 | Jan-12 | 20             | 31
    Agency B | 12345 | Jan-12 | 80             | 178
    Agency B | 12340 | Jan-12 | 0              | 0
    

    Are these totals also broken down by “program”? If so, program needs to be part of the primary key for this table. Otherwise, program doesn’t belong here.

    Finally, unless you’re going to start storing data about the ZIP codes themselves, you don’t need a table for ZIP codes.

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

Sidebar

Related Questions

This is my first azure project and I'm not sure if I'm doing something
This is my first android project so please help I am trying to create
This was my first Sinatra project - link shortener but I am stuck with
I want to try to create a learning chess application as a school project.
First, I am using Wordpress for this project but I don't think this issue
this is my first python project. I am having issues setting up a project
This is my first applet project and for some reason when I try to
This is my first time doing this sort of project so apologies if the
This is the first time I'm creating an open-source project, and I've decided (based
This is my first windows application. I have published my project and here 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.