Skip to content
Advertisement

How do I join two tables from a database in SQL?

I’m currently working on a project where we have to join two tables in SQL and then create a page to show the result of the two tables combined.

This is what I have so far:

and then a second page where the outcome should be:

Advertisement

Answer

This should give you what you need. Using tadman’s suggestion to change the char column to INT. Also changing the CHAR to VARCHAR columns.

I also made the ID’s in each table Identity columns (so they will auto populate).

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement