Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SQL Query Design Module Preview This guide contains a preview of the materials for all module courses in this series: Using a Relational Database Management
SQL Query Design Module Preview This guide contains a preview of the materials for all module courses in this series: Using a Relational Database Management System Single Table Query Commands Composing Structured Query Language Queries Designing Structured Query Language Syntax Be sure to follow the detailed directions found within the actual module course after you receive access. The content in this guide is only a preview and course content may have changed. For more information about taking module courses, visit the Traditional and Module Courses page (requires login). Course Materials MediaType: PG Library Title: SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL Edition: 4th (2018) Author: Viescas, John Publisher: Pearson Book ISBN: 978-0-134-85833-3
Learn: Reading and Research The reading material introduces you to Structured Query Language (SQL) Data Definition Language (DDL) syntax and commands to create, insert, update, and delete database content in SQL Server. The textbook used in this class isSQL Queries for Mere Mortals, 4thedition.Chapters 1, 2, and 1517 are the required readings for this module. It is recommended that, before searching the web, you look in the assigned readings for how to perform the SQL content being studied. Feel free to cite the assigned readings as sources in your discussion posts and your assignments. If you do need more material, the following sites are recommended:
Learn: Reading and Research The reading material covers the basics of SQL Data Manipulation Language (DML) syntax with single table query syntax, structure, and expressions in SQL Server. Chapters 4, 5, and 6 inSQL Queries for Mere Mortals(4thedition) are the required readings for this module. The readings in this module also cover the concepts needed to expand your single table SQL query knowledge. Practice examples are included in the latter part of the chapter. These will provide SQL questions to apply the concepts you learned throughout this modules reading requirements. Competency Assessment This Competency Assessment assesses the following outcome(s): Apply SQL single table query commands effectively. Advanced Single Table Queries Purpose In the Module 2 Assignment, you will have an opportunity to practice what you learned with advanced single table query techniques and structures. Like most types of information technology skills, SQL proficiency is accomplished through repetition and practice, and you will have an opportunity to do that in the class in general and this Module 2 in particular. Assignment Instructions This assignment includes advanced single table query questions using the sample databases attached to the SQL Server implementation installed in Module 1. Remember to add the personalized comment as noted at the beginning of Module 1 before each of your answer submissions of SQL code and corresponding result set. Failure to include the required comment with each question will result in a grade of zero. Assignment Requirements Remember to make sure the correct database is active before executing a SQL query. Visit the Writing Center for more information on APA style formatting. Also, review the university policy on plagiarism. If you have any questions, please contact your professor. Module 2 Questions: Advanced Single Table Queries Use the Sales Order Database to answer the following Module 2 Assignment questions:
Learn: Reading and Research Chapter 7: Thinking in Sets Chapter 8: Inner Joins Chapter 9: Outer Joins Chapter 10: Unions Chapter 11: Subqueries The readings in this module introduce working with and combining multiple tables of information together to provide informative result sets. Practice examples are included in the latter part of the chapters to apply the concepts you learned throughout the reading requirements. In addition, this module covers the concepts needed to expand your knowledge of multiple table queries and subqueries in SQL. Competency Assessment This Competency Assessment assesses the following outcome(s): Compose Structured Query Language (SQL) queries for database information analysis. Advanced Multiple Table Queries Purpose In this Module 3 Assignment, you will be required to answer Structured Query Language (SQL) problems involving multiple tables and subqueries. The SQL techniques you will need to apply are covered within Chapters 9, 10, and 11 of the required textbook. Assignment Instructions This assignment includes multiple table queries using the sample databases attached to the SQL Server implementation installed in Module 1. Remember to add the personalized comment as noted at the beginning of Module 1 before each of your answer submissions of SQL code and corresponding result set. Failure to include the required comment with each question will result in a grade of zero. Assignment Requirements Remember to make sure the correct database is active before executing a SQL query. Visit the Writing Center for more information on APA style formatting. Also, review the university policy on plagiarism. If you have any questions, please contact your professor. Module 3 Questions: Multiple Table Queries Use the Sales Order Database
Learn: Reading and Research Chapter 12: Simple Totals Chapter 13: Grouping Data Chapter 14: Filtering Grouped Data The readings in this module cover the concepts needed to expand your knowledge of grouping and filtering data in SQL. Practice examples are included in the latter part of the chapter. These will provide SQL questions to apply the concepts you learned throughout this units reading requirements. Competency Assessment This Competency Assessment assesses the following outcome(s): Design Structured Query Language (SQL) syntax to summarize and group data. Use language that is clear, concise, and organized. Grouping and Filtering Data in SQL Purpose In this Module 4 Assignment, you will be required to answer Structured Query Language (SQL) problems involving grouping and filtering data in using Structured Query Language code. The SQL techniques you will need to apply are covered within Chapters 12, 13, and 14 of the class textbook. Assignment Instructions This assignment includes multiple table queries using the sample databases attached to the SQL Server implementation installed in Module 1. Remember to add the personalized comment as noted at the beginning of Module 1 before each of your answer submissions of SQL code and corresponding result set. Failure to include the required comment with each question will result in a grade of zero. Assignment Requirements Remember to make sure the correct database is active before executing a SQL query. Visit the Writing Center for more information on APA style formatting. Also, review the university policy on plagiarism. If you have any questions, please contact your professor. Module 4 Assignments (Part A and B) Part A: Structured Query Language (SQL) Questions Use Sales Order Database
Course Code | |
---|---|
Module Course Title | Using a Relational Database Management System |
Outcome(s) | Use a Relational Database Management System (RDBMS) for effective database installation and manipulation. |
- W3school.com
- Tutorialspoint.com
- SQLZoo.Net
- BowlingLeagueExample (attached)
- EntertainmentAgencyExample (attached)
- RecipesExample (attached)
- SalesOrderExample (attached)
- SchoolSchedulingExample (attached)
- AdventureWorks (OPTIONAL from backup or script)
Course Code | |
---|---|
Module Course Title | SQL Single Table Query Commands |
Outcome(s) | Apply SQL single table query commands effectively. |
- Provide a result set with the customer name, area code, and phone number of all customers that live in a city that begins with an S.
- Provide a result set with the product name of all products that have a retail price over 50 and a quantity on hand greater than 18. List the result set in alphabetic order.
- Provide a result set with the vendors that we work with that do not have a website and are from Alaska.
- Provide a result set with the product name that has Dog in it. Include product name, retail price, and quantity on hand in your query results.
- Provide a result set of all engagements that occurred during September 2017. Only include engagement number and customer id in your result set.
- Provide a result set of the entertainers stage names that have websites. Sort the result set in descending alphabetic order.
- Provide a result set of all the musical style names that begin with a c.
- Provide a result set of the first and last names of members who are female. Order your result set in alphabetical order by first name within last name.
- Provide a result set of the staffid of all staff members who are either a professor or an associate professor and have a status of full time.
- Provide a result set of all the classid of the classes set to start in November 2017 that are on a Monday schedule.
- Provide a result set of all the department names that have science in them and their department chairs.
- Provide a result set with the student ids and class ids for all instances in which students earned a grade above 80 and below 90.
- Provide a result set of the tournaments that were held in July or August of 2018.
- Provide a result set of all the bowler ids, first names, and last names for all bowlers who do not have a middle initial in the table. Sort the result set by bowler id in descending order.
- Provide a result set of the bowlers who live in Bellevue, Bothell, Duvall, Redmond, or Woodinville and are on teams 58.
- Provide a result set of the bowler ids for all bowlers who had a handicap score less than 30 above their raw score and won their game.
- Provide a result set of the ingredient class ids that have a description that begins with s or p.
- Provide a result set of all the ingredient names that have an ingredient class id of 3, 4, or 9. Sort the ingredient names in ascending order.
- Provide a result set of all the recipe titles that begin with S and have a value for the notes attribute.
- Provide a result set of the ingredient names of all ingredients that have an ingredient class id of 3 or 10 and have a measure amount id greater than 5.
Course Code | |
---|---|
Module Course Title | Composing Structured Query Language Queries |
Outcome(s) | Compose Structured Query Language (SQL) queries for database information analysis. |
- Provide a result set of the customers first and last name and phone numbers for all customers who have ordered clothing. Make sure duplicate values are not included in the result set.
- Provide a result set of the product name and quantity on hand for all products that have not been ordered.
- Provide a result set of the employees first and last names for all employees that have sold accessories. Be sure not to include duplicates in your result set. Sort the result set in alphabetical order by employee last name.
- Provide a result set of the product name and description for all products ordered by a vendor that has bike somewhere in the vendors name.
- Provide the name of the product that is the most expensive we sell that is purchased from ProFormance.
- Provide a result set of the product names we sell that are purchased from a vendor that does not have a web page.
- Provide a result set of the vendor names of all the vendors that sell us products that are bikes.
- Provide a result set of all the entertainers stage names and the count of each entertainers engagements.
- Provide a result set of all the first and last names of all customers who have a preference for salsa and have booked an engagement. Make sure there are no duplicate values in the result set.
- Provide a result set of the stage names of entertainers who have played an engagement for customers from Bellevue. Make sure there are no duplicate values in the result set.
- Provide a result set of the entertainers stage names for all entertainers who have not been booked to an engagement.
- Provide a result set of all the first and last names of the staff members and the count that each teaches.
- Provide the first and last names of the students enrolled in a class that begins at 11 a.m. Sort the result set by students last name in alphabetical order.
- Provide a result set of all the first and last names of the faculty who teach in a classroom without a phone available. Make sure there are no duplicate values in the result set.
- Provide a result set of the first and last names of all students who attend a class in a classroom that has a capacity > 80.
- Provide a result set of the first and last names of the bowlers with a count of the games each bowled.
- Provide a result set of the first and last names of the bowlers who have bowled a game with a raw score of 200 or more. Please remove duplicates from the result set and sort the result set in alphabetical order by last name.
- Provide a result set of the team names and a count of the number of matches each team has won.
- Provide a result set of the types of recipes and the count of recipes in each type. Sort the result set in descending alphabetical order.
- Provide a result set of the recipe titles for all recipes that have to taste for any of their measurements.
Course Code | |
---|---|
Module Course Title | Designing Structured Query Language Syntax IT |
Outcome(s) | Design Structured Query Language (SQL) syntax to summarize and group data. Use language that is clear, concise, and organized. |
- Produce a result set that displays the total for order 8.
- Produce a result set that displays the number of orders that have three or fewer items.
- Produce a result set that displays the average contract price for entertainer with the stage name Saturday Revue.
- Produce a result set of the number of entertainers who are from a city that begins with a B or an S.
- Produce a result set of each agents name, the sum of the contract price for the agents engagements booked, and the agents total commission for agents whose total commission is more than $700.
- Produce a result set of the number of classes with which Tim Smith is associated.
- Produce a result set of the number of classes taught by every staff member who is an associate professor.
- Produce a result set of the average raw scores for all bowlers.
- Produce a result set of the number of tournaments held at a tourney location that begins with S or T.
- Produce a result set that displays the bowlers name and the average of the bowlers raw game scores for bowlers whose average is greater than 145.
- Produce a result set that lists the first and last name of every bowler whose average handicap score is greater than the overall average handicap score.
- Produce a result of the recipe name that requires the most salt.
Attachments:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To complete the assignments described in the question you will need to follow the instructions provided and perform various tasks in SQL Server Below are stepbystep explanations and example SQL querie...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started