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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:40:11+00:00 2026-06-01T09:40:11+00:00

I have to develop a table that would contain distance between destinations and need

  • 0

I have to develop a table that would contain distance between destinations and need some assistance for that. I am right now almost blank on how to start

enter image description here

here the table show distance from point A to A, B, C AND D ARE 0, 4, 8, AND 12 respectively and so on.

need to transform this data in MySQL table to be managed by admin panel and used at client site depending on from and to destination.

Regards

  • 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-01T09:40:12+00:00Added an answer on June 1, 2026 at 9:40 am

    In case you don’t have “real” date (like geolocation) you will need to store the data in 2 tables.

    First table, locations (so store A,B,C,D there, and other relevant information about the location)

    Second table, 3 columns. from_location, to_location, distance. (with a key on from/to_location so it is unique. But always check for the other way around before inserting, as you can support A,C and C,A in your table)

    This way you can easily extract the correct data from the database.

    For example, getting the distance from A to C (SELECT distance FROM distance_table WHERE from_location = "A" AND to_location = "C")

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

Sidebar

Related Questions

I'm hoping to develop a LAMP application that will centre around a small table,
I was trying to develop a login program that would work with a database.
I have been trying to develop some user controls, one being a text edit
We have an AS400 that we need to communicate with using our .NET applications.
I need to develop a client heavy web application that works on Android tablets.
I have to develop an application for an Android Tablet. This will do the
I am trying to develop an application using ADO.NET. I have two tables in
I have develop one web site in php. I know how to upload it
Hi i have develop and deploy one multilingual (english uk and swedish) website at
I have to develop a database for a unique environment. I don't have experience

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.