Home / Expert Answers / Computer Science / gold-prices-table-use-the-following-table-for-these-queries-table-name-gold-prices-4-write-a-sq-pa562

(Solved): gold prices Table Use the following table for these queries. Table name: gold_prices 4. Write a SQ ...



gold prices Table
Use the following table for these queries.
Table name: gold_prices
4. Write a SQL statement which returns t

gold prices Table Use the following table for these queries. Table name: gold_prices 4. Write a SQL statement which returns the average price on a Monday. The statement should group results by the day_of_week, month, and year and order the results by the year. Include the average and the day_of_week,month and year columns in the SELECT list. 5. Write a SQL statement which returns the average gold price grouped by year. The statement should contain the average and the year column in the SELECT list. 6. Write a \( S Q L \) statement which returns the average price grouped by year and day_of_week. Include the year and average price in the SELECT list. Show this result only for the years \( 1965,1975,1985 \), and 1995.


We have an Answer from Expert

View Expert Answer

Expert Answer


4. SELECT AVG(price), day_of_week, month, year FROM gold_prices WHERE day_of_week = 'Monday' GROUP BY day_of_week, month, year ORDER BY year
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe