Question

b. Write a SELECT statement that returns Ticker, its average closing price, its maximal closing price,...

b. Write a SELECT statement that returns Ticker, its average closing price, its maximal closing price, and its minimal closing price in the month of September 2019. Make sure that your data is well formatted and all columns have names.

These are the fields(database is cut short)

Date Ticker Open High Low Close Volume textdate
3/18/19 IBM 139.83 140.37 138.72 140.21 3268500 03/18/2019
3/19/19 IBM 140.96 141.7 140 140.49 3482300 03/19/2019
3/20/19 IBM 140.53 140.7 138.98 139.6 3649500 03/20/2019
3/21/19 IBM 139.1 142.12 138.88 141.44 3605400 03/21/2019
3/22/19 IBM 140.97 141.44 138.9 139.45 3877200 03/22/2019
3/25/19 IBM 139.06 139.91 138.35 139.18 2839800 03/25/2019
3/26/19 IBM 139.93 141.02 139.42 140.22 2553700 03/26/2019
3/27/19 IBM 140.41 140.49 138.4 139.24 3098200 03/27/2019
3/28/19 IBM 139.91 140.44 139.1 139.92 2663900 03/28/2019
3/29/19 IBM 140.5 141.22 140.15 141.1 3101400 03/29/2019
4/1/19 IBM 141.51 143.41 141.51 143.3 3984300 04/01/2019
4/2/19 IBM 143.35 143.95 142.6 143 2404800 04/02/2019
4/3/19 IBM 143.65 144.22 143.01 143.63 2681200 04/03/2019
4/4/19 IBM 143.62 144.14 142.54 142.78 2771100 04/04/2019
4/5/19 IBM 143.29 143.5 142.46 143.28 2731800 04/05/2019
4/8/19 IBM 143.02 143.42 142.87 143.39 2118200 04/08/2019

Homework Answers

Answer #1

Solution)

SELECT Ticker, AVG(Close) as AvgClosingPrice, MAX(Close) as MaxClosingPrince, MIN(Close) as MinClosingPrice from tableName
WHERE Date>='01/09/2019' AND Date<'01/10/2019''
GROUP BY Ticker;

Explanation: Please replace the tableName by the actual name of the table, aggregate functions AVG(),MAX() and MIN() are used with the where clause and group by ticker is used.The date is selected as greater than or equal to 1 september and less than 1 october 2019.

NOTE:Please upvote if you liked my answer and comment if you need any modification or explanation

Know the answer?
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
Similar Questions
A study was conducted to see if students’ writing skills continue to improve as the academic...
A study was conducted to see if students’ writing skills continue to improve as the academic year progresses. English 101 students were asked to write essays throughout the year in September, December, March and June. The scores were compared to see if there is any improvement in this one-year course. Was there a significant improvement? The appropriate test for this problem is: one-way ANOVA repeated measurements Student September December March June 1 17 23 21 24 2 25 21 21...
The results of a sample of 372 subscribers toWiredmagazine shows the time spent using the Internet...
The results of a sample of 372 subscribers toWiredmagazine shows the time spent using the Internet during the week. Previous surveys have revealed that the population standard deviation is 10.95 hours. The sample data can be found in the Excel test data file. What is the probability that another sample of 372 subscribers spends less than 19.00 hours per week using the Internet? Develop a 95% confidence interval for the population mean If the editors of Wiredwanted to have the...
____________________________________________ The results of a sample of 372 subscribers to Wired magazine shows the time spent...
____________________________________________ The results of a sample of 372 subscribers to Wired magazine shows the time spent using the Internet during the week. Previous surveys have revealed that the population standard deviation is 10.95 hours. The sample data can be found in the Excel test data file. What is the probability that another sample of 372 subscribers spends less than 19.00 hours per week using the Internet? ____________________________________________ Develop a 95% confidence interval for the population mean ____________________________________________ If the editors...
A manufacturing company is purchasing metal pipes of standard length from two different suppliers, ABC and...
A manufacturing company is purchasing metal pipes of standard length from two different suppliers, ABC and XYZ. In the past two months there are increasing complaints by the Production Manager that delivery times by ABC present higher variability in comparison to the delivery times by XYZ. The Production Manager is worried that this variability will make it harder to efficiently schedule the production process. If the variance of XYZ remains unchanged, what should be the variance of ABC in order...
A manufacturing company is purchasing metal pipes of standard length from two different suppliers, ABC and...
A manufacturing company is purchasing metal pipes of standard length from two different suppliers, ABC and XYZ. In the past two months there are increasing complaints by the Production Manager that delivery times by ABC present higher variability in comparison to the delivery times by XYZ. The Production Manager is worried that this variability will make it harder to efficiently schedule the production process. Does the sample data indicate a statistically significant difference at the 5% level? Justify your answer....
A manufacturing company is purchasing metal pipes of standard length from two different suppliers, ABC and...
A manufacturing company is purchasing metal pipes of standard length from two different suppliers, ABC and XYZ. In the past two months there are increasing complaints by the Production Manager that delivery times by ABC present higher variability in comparison to the delivery times by XYZ. The Production Manager is worried that this variability will make it harder to efficiently schedule the production process. Does the sample data indicate a statistically significant difference at the 5% level? Justify your answer....
1.      Complete the following: a. Standard Error (se) = b. R2 = c. Explain the meaning...
1.      Complete the following: a. Standard Error (se) = b. R2 = c. Explain the meaning of R2: MPG Weight Engine Size 25 2.7 152 33 2.305 122 34 2.3 134 26 2.485 244 32 2.26 122 29 2.345 178 26 2.325 256 35 2.34 122 28 2.675 195 34 1.9 1.5 25 2.355 260 35 2.055 178 20 3.11 240 27 2.885 183 19 2.85 288 30 2.695 195 33 2.175 153 30 2.215 153 25 2.79 183 26...
A company has the following returns over the past 30 months: Month Ret.(%) Month Ret.(%) Month...
A company has the following returns over the past 30 months: Month Ret.(%) Month Ret.(%) Month Ret.(%) 1) 3 11   -3 21 -1 2) -16 12 -2 22 -24 3) 31 13 -8 23 -14 4) 33 14 2 24 -19 5) -23 15 35 25 -19 6) -17 16 11 26 33 7) 8 17 -20 27 -18    8) -19 18 15 28 23 9) -13 19 -12 29 6 10 -17 20 17 30 5 What is...
6. Using the class data (see Blackboard file - "Class Survey Data - PSS-10 and GAS")...
6. Using the class data (see Blackboard file - "Class Survey Data - PSS-10 and GAS") calculate the correlation between the GAS – Goal disengagement and the GAS – Goal reengagement scores. Write the results in a statistical statement. 7. Using the class data calculate the correlation between the GAS – Goal disengagement and the PSS-10 scores. Write the results in a statistical statement. 8. Using the class data calculate the correlation between the GAS – Goal reengagement scores and...
Given the following frequency table of data, what is the potential outlier? Value Frequency 15 1...
Given the following frequency table of data, what is the potential outlier? Value Frequency 15 1 16 0 17 3 18 4 19 6 20 10 21 3 22 2 23 1 24 0 25 0 26 0 27 0 28 0 29 0 30 1 Select the correct answer below: 30 18 23 19 17