Week 2 - CST 363
1. One example would be to match employees to managers is the employee’s salary is higher than the manager’s salary.
Select e.name, m.name
From employee e
Join manager m ON e.salary > m.salary
2. I think SQL is somewhat easy to learn because the keywords used are common words like Select and From. It’s sometimes easy to understand what the prompt is asking you to do. The difficult parts are learning when to use Join or when to Group tables together. It can help sometimes be helpful to draw it out on paper how tables should be joined.
Comments
Post a Comment