Many to Many Relationship Access College Database

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 27

  • @throsbychurch5179
    @throsbychurch5179 2 ปีที่แล้ว +2

    I have to agree with the others, this is a good explanation. I've never heard of a junction table before, let alone seen one. I built a students database back around 2003 for adding historical records from around 1900 and it worked well. But I upgraded to a new database version and my data corrupted. I tried a couple of times to rebuild it and I thought I had it working until I noticed corruption again. Records I was entering were being written to another students information. I decided to see if anyone built a students database I can adapt and found yours. I have created a portion of your database and adapted it. Instead of Clubs I have schools. It's not quite how I want it, so I will make more changes and see the results. Thanks for showing me something new and the easy to understand tutorial.

    • @QVisible
      @QVisible  2 ปีที่แล้ว

      Thanks. That's an interesting project 🤔.

  • @hapemokenela7388
    @hapemokenela7388 4 ปีที่แล้ว +1

    This series of tutorials on data relationships has been very informative and made easy to understand. Thanks.

  • @scottaxton2513
    @scottaxton2513 8 ปีที่แล้ว +1

    One of the best explanations of Many-to-Many I've seen! This makes it much more understandable. Thanks

  • @fazerville
    @fazerville 7 ปีที่แล้ว +1

    This is a good explanation. Particularly how data flows through the joins is well explained and limitations made clear through the use of a query. Well done !

  • @mantjaneds4981
    @mantjaneds4981 2 ปีที่แล้ว +1

    You made my day!!! thanks for making it so easy

  • @emmanuelc.tuazama3535
    @emmanuelc.tuazama3535 3 ปีที่แล้ว +1

    Very good and understandable explanation
    It has helped me greatly, Thank you!

  • @TechGuyInMotion
    @TechGuyInMotion 2 ปีที่แล้ว +1

    You are the best

  • @Seraphyx
    @Seraphyx 8 ปีที่แล้ว

    Thank you, been trying to figure out how to do this. You explained how to do it and why to do it how you are showing. Made sense.

  • @hixe7399
    @hixe7399 2 หลายเดือนก่อน +1

    Thank u so much

  • @joebox9999
    @joebox9999 7 ปีที่แล้ว +1

    Nice explanation, but this is only half of the story. You normally need a form to perform such activity. Rarely someone is writing directly to the table. So how does one link multiple records in subform to a record in a main form. lets say via tick box.

    • @QVisible
      @QVisible  7 ปีที่แล้ว

      +joebox9999 the form would be another tutorial. A simple form would not suffice. It would depend on the context and the ux desired.

    • @sahajisam964
      @sahajisam964 5 ปีที่แล้ว +1

      @@QVisible Have you done this form tutorial yet? Please I need it so bad :)

    • @QVisible
      @QVisible  5 ปีที่แล้ว

      Sorry. I don't have tutorial on this.

  • @his-worddevotionals540
    @his-worddevotionals540 4 ปีที่แล้ว +1

    thank you sir!

  • @muhammadtalhazahid2947
    @muhammadtalhazahid2947 7 ปีที่แล้ว

    awesome explaination... but sir I have a question that can one table have 2 primary keys in many to many relationships???

    • @QVisible
      @QVisible  7 ปีที่แล้ว +1

      First off a many to many relationship needs a junction table. If it's a junction table between two tables it must have two foreign keys. These foreign keys can only relate to a single key in another table.
      Generally these tables will have a single primary key. But there is an exception. You can have a duplicate primary key. These are two fields that on their own do not provide uniqueness for every record in the table. But if you look at both keys together the values of both fields are not repeated anywhere else in the table and therefore provide uniqueness. Hence you define both keys together as the primary key. But it's still described as a single primary key.
      Therefore the short version to answer your question is no, you can't have two primary keys in one table.

    • @muhammadtalhazahid2947
      @muhammadtalhazahid2947 7 ปีที่แล้ว

      thank you very much sir.... I made many to many relationship as u answer .... :-)

  • @nnflorian
    @nnflorian 6 ปีที่แล้ว

    Watched all of your videos, thanks. How would design a "ReportsTo table" relation to an "employee table", where employees can report to each other for a certain period of time?

    • @QVisible
      @QVisible  6 ปีที่แล้ว

      This is interesting. You should create a table names reportsto with two foreign keys. Both of these should relate to the primary key of the employees table. You probably want a start date and end date column for recording all the different instances of reporting. This will allow multiple report relationships to be recorded.

    • @nnflorian
      @nnflorian 6 ปีที่แล้ว

      Many Thanks that worked... sweating already.
      My "ReportsTo" table has 5 columns: ID, RoleID, ReportsToID, ReportFrom, ReportsTo.
      Now I´m stuck with the following: How can I add a column automatically displaying the manager´s name based on ReportsToID? It should be picked up from the employee´s table, but how...

    • @farinatty
      @farinatty 6 ปีที่แล้ว

      Flo Rian Don't add a column to the table. Use a query to combine the reports to table and the employee table and pull the managers name from the employee table via the reportsto ID foreign key. Base your form to edit this on the query

  • @MustangDesudiroz
    @MustangDesudiroz 4 ปีที่แล้ว

    idk why when i make relations theres no arrow that connects them

    • @QVisible
      @QVisible  4 ปีที่แล้ว

      Just as you drag and drop the relationship, In the edit relationships box, make sure you check on 'enforce referential integrity' checkbox.

  • @jonhmasesi7927
    @jonhmasesi7927 7 ปีที่แล้ว

    very helpful thank you!

  • @shorthandtricks9643
    @shorthandtricks9643 7 ปีที่แล้ว

    Sir very nice but i have a question does the clubs means(classes)

    • @QVisible
      @QVisible  7 ปีที่แล้ว +1

      Clubs that students join as part of the college/university experience. Clubs and societies after class time.