George Washington University MySQL Complex Queries Homework P4 Step 6: Complex Queries (4 points) Attached Files: Project 4 Step 6_Example.pdf (466.771

George Washington University MySQL Complex Queries Homework P4 Step 6: Complex Queries (4 points)

Attached Files:

Don't use plagiarized sources. Get Your Custom Essay on
George Washington University MySQL Complex Queries Homework P4 Step 6: Complex Queries (4 points) Attached Files: Project 4 Step 6_Example.pdf (466.771
Just from $13/Page
Order Essay

Project 4 Step 6_Example.pdf (466.771 KB)

THIS PROJECT IS BASED ON YOUR PREVIOUS PROJECT (P3 STEP 5: CREATING DATABASE), POST THE FOLLOWING INFORMATION, IN THE RESPECTIVE QUESTIONS.

You must submit a PDF document with all the description of the project as required below
The MySQL script creating a database and making the required queries, that will implement the design completely.
You DO NOT have to generate MySQL script from MySQL Workbench.

File name

Template – S6 –

Before starting SECTION 11, attach the screenshot of your designed detailed ERD from the previous project (P3 STEP 5: CREATING DATABASE), for the reference.

SECTION 14 COMPLEX QUERIES SCRIPT (4 points = 10*0.4 points)

Based on the database created in your previous project (P3 STEP 5: CREATING DATABASE) , perform the following 10 types of complex queries.

For each query, you must include in the PDF file the following aspects:

A description in English of what the query is intended to do (this is what the query will be check against)
The source of the query
The resulted table after the execution of the query

It is very important that the query will make sense in the context of the database, i.e. one can imagine a real life scenario when such a query will be made. A query that makes no sense or does not follow the intended description will receive 0 points.

Construct ten queries, based on single and multiple tables. For queries involving more than one table use JOIN clause. Your queries must satisfy the following requirements:

Query 1: Contains only some of the columns in one table involving count function with distinct clause
Query 2: Contains only some of the columns in two tables with at least one aggregate function
Query 3: Contains only some of the columns in three tables involving a subquery
Query 4: Contains only some of the columns in three tables involving a GROUP BY statement and at least one aggregate function
Query 5: Contains only some of the columns in four tables involving a GROUP BY statement and HAVING clause
Query 6: Contains only some of the columns in three tables involving GROUP BY and a subquery
Query 7: Contains only some of the columns in at least four tables involving a GROUP BY and a subquery
Query 8: Contains only some of the columns in at least three tables involving a GROUP BY statement and HAVING clause and a subquery
Query 9: Contains only some of the columns in at least three tables involving both WHERE and HAVING clause
Query 10: Contains only some of the columns in at least three tables involving both WHERE and HAVING clause and a subquery

superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago