Which action should you take?

You are a database developer on an instance of SQL Server 2008. Your Transaction table has a PRIMARY KEY constraint defined on the TrxID column. Your
Transaction table also contains columns named TrxType and TrxDisposition.
You want to generate a list of the number of transactions by type and disposition. You want the result set to display the following data:
• A total transaction count for each type
• A total transaction count for each disposition
• A grand total count of all transactions
Which action should you take?
A. Include only the TrxID column in the GROUP BY clause and specify a grouping set that includes only an empty set.
B. Include only the TrxType column in your GROUP BY clause and create a grouping set that includes the TrxType column.
C. Include the TrxType and TrxDisposition columns in your GROUP BY clause and include the WITH ROLLUP option.
D. Include the TrxType and TrxDisposition columns in your GROUP BY clause and include the WITH CUBE option.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.