Design of background database of bus route query system--related place names and sites

Source: Internet
Author: User

In the "Bus route query system background Database design-Query algorithm", the article has realized the query site to the site Route query algorithm, but, in reality, users do not necessarily use the site to query, but the use of place names. Therefore, the bus query system database must record the corresponding relationship between the place name and the site, map the place name to the site in the query. According to the actual situation, there are usually several sites near a certain location, so there is a many-to-many relationship between the place name and the site. Obviously, just create a name site relational table Stop_spot (Stop,spot) to store this relationship. The database diagram is as follows:

Note:

Route: Route List

Stop: Site Table

Spot: Table of Names

Stop_route: Route-Site Relations table

Stop_spot: Place name-Site relations table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.