Question

Change the following MDX query to pivot the Date dimension to rows. SELECT ([Product].[Category].[Category], [Date].[Calendar].[Calendar Year])...

Change the following MDX query to pivot the Date dimension to rows. SELECT ([Product].[Category].[Category], [Date].[Calendar].[Calendar Year]) ON COLUMNS, [Customer].[Country].[Country] ON ROWS FROM [Adventure Works] WHERE [Measures].[Internet Sales Amount]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SELECT ([Product].[Category].[Category], [Date].[Calendar].[Calendar Year]) ON ROWS, [Customer].[Country].[Country] ON COLUMNS FROM [Adventure Works] WHERE [Measures].[Internet Sales Amount]

Add a comment
Know the answer?
Add Answer to:
Change the following MDX query to pivot the Date dimension to rows. SELECT ([Product].[Category].[Category], [Date].[Calendar].[Calendar Year])...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using the Cash table below, show the output for the following SQL query: (Using the dropdowns,...

    Using the Cash table below, show the output for the following SQL query: (Using the dropdowns, identify which rows and columns would included in the SQL query output shown below. Select "Not included" for rows and columns that would not be included in the output.) SELECT Account#, Balance FROM Cash WHERE Bank = ‘Boston5’ ORDER BY Amount DESC; Cash Account # Type Bank Balance 253 48.000 75,000 950 Checking Checking Draft Checking ncluded BA-6 BA-7 ot Included BA-8 BA-9 Boston...

  • 1.2) (5 Points) For each of the following statements, mark T (True) or F (False) SELECT...

    1.2) (5 Points) For each of the following statements, mark T (True) or F (False) SELECT DISTINCT is used if a user does not want to see duplicate rows in a query. T F TF Consider the following SQL statement: SELECT pred price * pred quant as total cost FROM Product; The output of this query is a table with two columns. You can create a View if you do not want users to see all the attributes of a...

  • What happens when you try to compile and run the following code? String query = "INSERT...

    What happens when you try to compile and run the following code? String query = "INSERT INTO Invoices (InvoiceDate InvoiceTotal) "              + "VALUES ('2/10/01', '443.55')"; Statement statement = connection.createStatement(); statement.executeUpdate(query); a. A SQLException is thrown at runtime because the executeUpdate method can’t accept a String object. b. A SQLException is thrown at runtime because the SQL statement is coded incorrectly. c. An error occurs at compile time because the SQL statement is coded incorrectly. d. This code compiles and...

  • #6 Write a SELECT statement that returns these columns: The count of the number of orders...

    #6 Write a SELECT statement that returns these columns: The count of the number of orders in the Orders table The sum of the tax_amount columns in the Orders table Write a SELECT statement that returns one row for each category that has products with these columns: The category_name column from the Categories table The count of the products in the Products table The list price of the most expensive product in the Products table Sort the result set so...

  • can someone solve these quick please and thank you! sql chapter 4 Query #1: List the...

    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...

  • Write an SQL query to list those properties that have never been sold. Design Tip When a property has sold, its information can be found in Sales table and vice versa. List each property with the foll...

    Write an SQL query to list those properties that have never been sold. Design Tip When a property has sold, its information can be found in Sales table and vice versa. List each property with the following four columns: property_id, primary_purpose, locality, and the area. Name the area coulmn as "Area". (Since the dataset might be incomplete, return "N/A" when the area is unknown for a property.) So the problem I got is that I got very similar output as...

  • The execution of the query SELECT BirthPlace, AVG(Age) AS Avgage FROM CUSTOMER WHERE BirthPlace = 'TAMPA'...

    The execution of the query SELECT BirthPlace, AVG(Age) AS Avgage FROM CUSTOMER WHERE BirthPlace = 'TAMPA' OR BirthPlace = 'ERIE' GROUP BY BirthPlace will produce the following number of rows: CUSTOMER Спалье BLACK GREEN JONES MARTIN SIMON VERNON Resid City ERIE CARY HEMET HEMET ERIE CARY | Age 40 23 BirthPlace TAMPA ERIE. TAMPA TAMPA ERIE CARY 30 35 22 60 RENTALS Спалое BLACK BLACK BLACK GREEN JONES JONES Pickup Date Out 10-Oct-1994 |CARY 01-Nov-1995 | TAMPA 01-Jan-1995 ERIE 07-Jul-1994...

  • Latté Da Coffee has a calendar year-end. The following transactions occurred during the year: On September...

    Latté Da Coffee has a calendar year-end. The following transactions occurred during the year: On September 1, it paid for an insurance policy for $6,120. It is a 9-month contract. You may assume an equal amount of the insurance is used up for each month the policy is valid. On October 10, it received $2,450 from a customer for prepaid coffee beans. The customer will be receiving the coffee beans in an equal amount for the next seven (7) consecutive...

  • Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a...

    Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a database that stores information abhout Hotel Management System. Customer (C email, name, country) Payment (Invoice id. C email, payment method, date) Invoice (Invoice id, starus, invoice description) Has (Bill id, Invoice id) Bill (Invoice id, Bill id, amount, Bname, type, date, reservation id) Reservation (Hotel id., room id. C email, date, period, reservation id) Rooms(Hotel id, room id. price, category) lotel (Hotel id, H...

  • Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a...

    Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a database that stores information abhout Hotel Management System. Customer (C email, name, country) Payment (Invoice id. C email, payment method, date) Invoice (Invoice id, starus, invoice description) Has (Bill id, Invoice id) Bill (Invoice id, Bill id, amount, Bname, type, date, reservation id) Reservation (Hotel id., room id. C email, date, period, reservation id) Rooms(Hotel id, room id. price, category) lotel (Hotel id, H...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT