Question: Using the relation from Exercise 5.9, write an SQL query to generate a report showing the number of shares traded, number of trades, and total
Using the relation from Exercise 5.9, write an SQL query to generate a report showing the number of shares traded, number of trades, and total dollar volume broken down by year, each month of each year, and each trading day.
Exercise 5.9
Given a relation nyse(year, month, day, shares traded, dollar volume) with trading data from the New York Stock Exchange, list each trading day in order of number of shares traded, and show each day’s rank.
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
ANSWER SELECT year month day SUMsharestraded AS Total Number of S... View full answer
Get step-by-step solutions from verified subject matter experts
