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

Foreign keys and queries (no replies)

$
0
0
Hi
I am coming back to SQL after a twenty year break so have enough knowledge to confuse myself without being any help.

I have set up a model in workbench and successfully exported this to a new connection I created. However this was only after I removed the foreign keys I had created in a table. I have user table, an activity table and a user activity table with the user activity table containing foreign keys from the other two tables.

However I had to remove those foreign keys before I could forward engineer. Why is that?

Now I have the three tables in the DB and have created some records in each I want to show the activities that each user has signed up for. So it is some sort of union/join statement I think, but how do I build this through drag and drop of the relevant columns from the different tables?

thanks for your help
Nick

Viewing all articles
Browse latest Browse all 3724

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>