SQL: Write a query to, by store (number), list the maximum
number of store visits made by a customer.
Select Store_Number,max(count(Visit_Number)) from Store_Dimension inner join Item_Scan_Fact on Store_Dimension.Store_Key = Item_Scan_Fact.Store_Key group by Store_Number ;
For each Store_Number , the total count or maximum visits made by Customer(Member_Key) is displayed
Do ask if any doubt. Please upvote.
SQL: Write a query to, by store (number), list the maximum number of store visits made...
can someone solve these quick
please and thank you!
sql chapter 4
Query #1: List the company name, contact name, contact title and
the phone number for customers who HAVE NOT put in an order. Use an
outer join.
Query #2: Create a listing displaying the employee first name,
last name and the full name (First name space Last Name) of the
person they report to (Supervisor). This is a self-join. If an
employee does not report to anyone then...