Database Systems - Week 2

I was thinking that joining tables on something other than primary keys and foreign keys would not be something that should exist, but I guess you never know what you would eventually want to use data for.  An example I thought of was having to join tables with populations if the tables weren't related in another way.

Join a table countries with population and then a table cities with population.  

SELECT ci.Name AS city, c.Name AS country, c.population
FROM city ci, country c;

SQL language is not that easy to learn.  It is fairly simple to learn the basics but figuring out how to do specifics with large datasets can be very complicated and hard to grasp.  The questions I find most challenging are trying to pull specific data and trying to figure out how to get only that data and format it the way you want.

Comments

Popular posts from this blog

Learning Journal Final Entry...

Software Engineering - Week 8

Computer Networks - Week 8