Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Database Foundations Joining Relational Data Between Tables in SQL Joining Tables and Aliasing

How do I proceed for the following scenario

Let's say I have a Table called University1 with a,b,c,x columns. University2 with a,b,c,d,e,x columns University3 with b,x,d,c columns. I need to form a schema in such a way that, All the common attributes from the 3 Tables need to form a newTable with columns b,c,x. The left lone attributes needs to be in Another Tables, say LeftoverUniversity1 with columns a column. Similarly LeftoverUniversity2 with a,d,e columns. LeftoverUniversity with d column. And the newTable row should have a relationship towards LeftoverUniversities.