Produce a List of 5 Highest Revenue Transactions
You need to produce a list of the five highest revenue transactions from the Orders table in the Sales database. The Orders table is defined as follows:
CREATE TABLE Orders (
OrderID Int IDENTITY NOT NULL,
SalesPersonID Int NOT NULL,
RegionID Int NOT NULL,
OrderDate Datetime NOT NULL,
OrderAmount Int NOT NULL )
Which statement will produce the report correctly?
a. SELECT TOP 5 OrderAmount, SalesPersonID FROM orders
b. SELECT TOP 5 OrderAmount, SalesPersonID FROM orders ORDER BY OrderAmount DESC
c. SELECT TOP 5 WITH TIES OrderAmount, SalesPersonID From Orders
d. SELECT TOP 5 WITH TIES OrderAmount, SalesPersonID From Orders ORDER BY OrderAmount
Questions by rakeshchhapare
Showing Answers 1 - 9 of 9 Answers
Related Answered Questions
Related Open Questions
Produce a List of 5 Highest Revenue Transactions
CREATE TABLE Orders (
OrderID Int IDENTITY NOT NULL,
SalesPersonID Int NOT NULL,
RegionID Int NOT NULL,
OrderDate Datetime NOT NULL,
OrderAmount Int NOT NULL )
Which statement will produce the report correctly?
a. SELECT TOP 5 OrderAmount, SalesPersonID FROM orders
b. SELECT TOP 5 OrderAmount, SalesPersonID FROM orders ORDER BY OrderAmount DESC
c. SELECT TOP 5 WITH TIES OrderAmount, SalesPersonID From Orders
d. SELECT TOP 5 WITH TIES OrderAmount, SalesPersonID From Orders ORDER BY OrderAmount
Profile Answers by rakeshchhapare Questions by rakeshchhapare
Questions by rakeshchhapare
Related Answered Questions
Related Open Questions