Set up a Google Cloud Platform account. Create a BigQuery dataset named “order_entry_dataset” in your GCP Project. Copy all of the tables from the `handy-bonbon-142723.order_entry_dataset` to your own order_entry_dataset dataset (see example code below). CREATE TABLE `order_entry_dataset.customers` AS SELECT * FROM `handy-bonbon-142723.order_entry_dataset.customers` Write a SQL statement to show the total dollar amount sold across product categories for all orderable products. Calculate the percentage contribution of each product category’s sales to the overall total sales. Write a SQL statement to show the total dollar amount sold summarized by Customer marital status and Year along with RANK. The largest sales by marital status by year should be ranked #1.
Set up a Google Cloud Platform account. Create a BigQuery dataset named “order_entry_dataset” in your GCP Project. Copy all of the tables from the `handy-bonbon-142723.order_entry_dataset` to your own order_entry_dataset dataset (see example code below). CREATE TABLE `order_entry_dataset.customers` AS SELECT * FROM `handy-bonbon-142723.order_entry_dataset.customers` Write a SQL statement to show the total dollar amount sold across product categories for all orderable products. Calculate the percentage contribution of each product category’s sales to the overall total sales. Write a SQL statement to show the total dollar amount sold summarized by Customer marital status and Year along with RANK. The largest sales by marital status by year should be ranked #1.
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 6MC
Related questions
Question
-
Set up a Google Cloud Platform account. Create a BigQuery dataset named “order_entry_dataset” in your GCP Project. Copy all of the tables from the `handy-bonbon-142723.order_entry_dataset` to your own order_entry_dataset dataset (see example code below).
- CREATE TABLE `order_entry_dataset.customers` AS
SELECT * FROM `handy-bonbon-142723.order_entry_dataset.customers`
-
-
Write a SQL statement to show the total dollar amount sold across product categories for all orderable products. Calculate the percentage contribution of each product category’s sales to the overall total sales.
-
-
-
Write a SQL statement to show the total dollar amount sold summarized by Customer marital status and Year along with RANK. The largest sales by marital status by year should be ranked #1.
-
- CREATE TABLE `order_entry_dataset.customers` AS
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning