CST-363 Week 2
- SQL has the flexibility to join tables on any column(s) using any predicate (=, >, < ). Most of the time the join will use equality between a primary and foreign key. Think of example where joining on something other than keys would be needed. Write the query both as an English sentence and in SQL. If you can't think of your own example, search the textbook or internet for an example.
- You want a combination of ingredients to create a food item. Ex: SELECT f.name, i.amount, i.name FROM food f CROSS JOIN ingredient i;
- What is your opinion of SQL as a language? Do you think it is easy to learn and use? When translating from an English question to SQL, what kinds of questions do you find most challenging?
- I think SQL is not very difficult to learn. Some of the more challenging questions are ones that involve multiple JOIN statements, which may be a bit more difficult to think of an abstract solution.
Comments
Post a Comment