How does MySQL design the curriculum database?

Source: Internet
Author: User
I am a beginner in the database. I don't know how to design or solve the problem. Select "Major" and return to the curriculum. How should we design each table. How should I get back to the course schedule and generate a weekly schedule? Now I designed the system table (Department ID, Department name) professional table (Professional ID, professional name, department... my problem

Beginner database, do not understand design, solution.
Select "Major" and return to the curriculum
How to Design tables.
How should I get back to the course schedule and generate a weekly schedule?

Now I designed

Department table (Department ID, Department name)
Professional table (Professional ID, professional name, department ID)
Class table (class ID, class name, professional ID)
Course table (table ID, course name, class ID)

Reply content: my questions

Beginner database, do not understand design, solution.
Select "Major" and return to the curriculum
How to Design tables.
How should I get back to the course schedule and generate a weekly schedule?

Now I designed

Department table (Department ID, Department name)
Professional table (Professional ID, professional name, department ID)
Class table (class ID, class name, professional ID)
Course table (table ID, course name, class ID)

If it is me, I will create a dedicated link form to store various IDS to represent the corresponding link;
Each table that represents a transaction only contains attributes related to the transaction.

Department table (Department ID, Department name)
Professional table (Professional ID, professional name)
Class table (class ID, class name)
Course table (table ID, course name)
Relational table (relational ID, System ID, professional ID, class ID, table ID)

This facilitates maintenance and provides clear logic.

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.