Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3724

How do I set up Relationships for Query (no replies)

$
0
0
Hey everyone i'm a student learning about MySQL through Workbench and need some help with my assignment for class that is due on monday.


The assignment has to do with a student registering for classes at a university. The professor is having us fill in 15 data entries for each table. right now i have 11 tables. then on monday he will bring his questions for the query. for instance he could ask us "how many students registered for *insert class name*" or something like how many students are active between 2011 and 2015".

so i need to make that that when we go to inputs the queries that they work properly with a working entity relationship model.

basically all i did was use the foreign key tab to make the relationship between each table and that was it. whenever i tried to select something like First and Last Name and relate it to the table that has to do with Classes i would get an error and stuff.

Viewing all articles
Browse latest Browse all 3724

Trending Articles