Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Develop a SELECT statement for each of the following requirements: Querying the Fact only 1 . Display the Number of Orders in the D _
Develop a SELECT statement for each of the following requirements:
Querying the Fact only
Display the Number of Orders in the DORDERS table.
Display the Number of Orders in the FORDERS table Check that you get the same number from
the dimension table DORDERS
Display the Lowest, Highest and Average Amount of all Orders.
For each customer, display the Lowest, Highest and Average Amount of orders.
Query the Fact and one dimension
Display the customersid and Name having an average Amount of orders greater than the double
of the average amount of all orders.
You should get rows.
Number of Orders by Salesman IDS and SName are required
You should get rows.
Number of Orders by customer Id FName, LName
Modify your previous answer to display the Number of Orders and their Total by Customer Id
FName, LName sorted by the number of order descending.
Display each Customer Id CFName, CLName having the total amount of its Orders greater
than of the average of all Orders.
Queries using two dimensions and the fact
Display the Number of direct Orders OMode DIRECT by Customer Id CFName, CLName
and Salesman identifier and name
You should get rows.
Total Amount of Orders by Year and Customer ID sorted by Year and Customer.
You should get rows
Simulate the DrillDown operator
Transform query to display the result of the following OLAP operation:
DrillDownQ DTime, Quarter Where Q is the result of question
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