Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL> select prod_name, cust_gender, day_name, sum(amount_sold) as totalsold 2 from sh.products, sh.customers, sh.times, sh.sales 3 where prod_name like ('Deluxe Mouse') 4 group by prod_name, cust_gender,

SQL> select prod_name, cust_gender, day_name, sum(amount_sold) as totalsold

2 from sh.products, sh.customers, sh.times, sh.sales

3 where prod_name like ('Deluxe Mouse')

4 group by prod_name, cust_gender, day_name

5 having cust_gender='female' and (day_name='friday' or day_name='thursday');

For the query above suppose that Star transforms were applied to it.

Hand write or type the nested queries that Star transform will add to the query

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago