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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:12:58+00:00 2026-05-18T07:12:58+00:00

I have been working on a MS 2010 Access Database to calculate rates on

  • 0

I have been working on a MS 2010 Access Database to calculate rates on a CSV input of shipments.

A rate is generally distinguished by the Origin City, Origin Country, Destination City, Destination Country, a possible mid-way Destination City, Weight, Volume, and Quantity. A unique combination of these variables will specify another list of variables which are used to calculate the final rate by multiplying these variables against the weight, volume, or quantity, and adding them together.

One issue is that there is an inconsistency in City and Country names/spellings. My other concern is that I am feeling I could benefit from splitting the data into multiple tables, but unsure how to best accomplish this.

Edit:
Thank you for your criticisms. My question is, what is the best way to structure this database? Here is a simplified example of my table:

rates (startCity, startCountry, midCity, midCountry, endCity, endCountry, type, weight, volume, baseRate, feeA, feeB, feeC, delivery, fuel)

Everything is in one table, and it doesn’t really have a unique identifier/key. Instead each line is unique in that at least one of the locations or the type is different.

csv input: shipmentID, startCity, startCountry, midCity, midCountry, endCity, endCountry, type, weight, volume, qty

query output: shipmentID, {qty*[baseRate+weight*(feeA+feeB)+volume*(feeC)+delivery+fuel]}

  • 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-18T07:12:59+00:00Added an answer on May 18, 2026 at 7:12 am

    I am not sure I understand your question. If you are looking for a database structure I would come up with the following 3 tables:

    location (id, cityname, zipcode, country_ID)

    country (id, countryname)

    route (id, startlocation_ID, midlocation_ID, endlocation_ID, ratefactor)

    The final rate is probably based on a formula. The route-dependent part of the formula needs to be put into the “route” table as “ratefactor”. Whether you need to put the other parts of the formula in a table, too, will depend on the formula itself (you didn’t tell us enough about it). Entering of city/country names should be done with a dropdown list where the user can choose only between the ones already entered. Most of the time your users will probably use the routes tables with the already entered regular routes, I guess. If your company does serve any location in the world you can’t avoid letting them enter new city names all the time themselves, of course.

    UPDATE: After your EDIT I suggest you look deeper into the topic of database normalization. At example your “rates” table looks like you will have many, many identical routes differing only on the weight. So it would make sense to keep the route information separately as I suggested already. The additional information should go in a separate table (quote: id, route_ID, type, weight,…).

    “(feeA + feeB)” and “feeC” seem to be the ratefactors I mentioned in my suggestion. But I don’t see the reason of having both feeA and feeB, because they are always added together before being used. If they refer to the price of connecting to cities and your would need to keep this information separate it would probably be best to keep the price information in a different table (connectionprice: id, locationA_ID, locationB_ID, pricing) and look it up instead of entering it every time anew.

    Although one can argue you don’t need a separate PK if you have different fields whose combination makes for an unique identifier, I would make a habit of creating one (“id”) for each table nonetheless. Nearly always it makes programming access and information retrieval so much easier.

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

Sidebar

Related Questions

I have been working on an Excel 2010 template for some time and I
I have been working on an MVC 3 app. I was using VS 2010's
Recently we started working with Database project in Visual Studio 2010. I have added
I have been working on some customisation for SharePoint 2010 using Visual Studio. My
I have been working in Visual Studio 2010, in asp.net, i am using Jquery
We are using TFS and VS 2010. I have been working on a project
I have been working on a web services related project for about the last
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I have been working with a string[] array in C# that gets returned from
We have been working with CVS for years, and frequently find it useful to

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.