Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the AdventureWorksDW2012 database, list the customers who have purchased BOTH a touring bike and a hydration pack. (Subquerry in SQL) True or False. The

"Using the AdventureWorksDW2012 database, list the customers who have purchased BOTH a touring bike and a hydration pack." (Subquerry in SQL)

  1. True or False. The following would be a code solution for the business question posed above:

use AdventureWorksDW2012;

select distinct c.CustomerKey from DimCustomer as c inner join FactInternetSales as fis on c.CustomerKey = fis.CustomerKey inner join DimProduct as p on fis.ProductKey = p.ProductKey where p.ProductSubcategoryKey = 3 and p.ProductSubcategoryKey = 32;

  1. From the AdventureWorksDW2012 database, determine the number of customers from the Customers table.
  2. From the AdventureWorksDW2012 database, determine how many customers have made at least one purchase from the Touring Bike subcategory (subcategory 3).
  3. From the AdventureWorksDW2012 database, determine how many customers have made at least one purchase from the Hydration Pack subcategory (subcategory 32).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions