assignment-6-sql-3-1

This is anothe one, requirement is the same.

Additional instructions for this homework:

– Use WITH (NOLOCK) after table names

– Use Aliases for your tables and with your columns

– Don’t hard-code any values. Rather, JOIN to the appropriate lookup table.

NOTE: Please do NOT use any tools to generate your code for you. Those tools exist, but you will not learn how the code works by using pre-generated scripts and Database diagrams. These tools create code that you cannot (or may not) understand. Then, when it comes time for you to write your own code, and you don’t have these tools to auto-generate code for you, you won’t know how to fix something when it goes wrong. That, and the fact that you won’t have these tools on the final will be a losing proposition for you. As such, I will not accept any scripts that have been auto-generated.

Part 1)

I will give you pre-populated tables (the same as last homework) and ask you English questions
(that is, in normal conversational sentences).
You will give me the SQL statements (DO NOT USE THE OLD-STYLE JOINS!!!) that will give the exact answers,
along with the results of the queries.

Part 2) You give me five (5) English questions (that is, normal conversational sentences) from YOUR tables (the ones you’ve been using all along),
You will then give me the SQL statements that will give the exact answers, along with the results of the queries.
Note: Don’t use any that you used last time.
Note 2: Make sure to use more advanced queries than last time.