Answered step by step
Verified Expert Solution
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
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