Back to questions

SQL AVG Practice Exercise SQL Interview Question

SQL AVG Practice Exercise

SQL Interview Question

Write a SQL query using to find the average open price for Google stock (which has a stock ticker symbol of 'GOOG').

Sample stock_prices Input:

datetickeropenhighlowclose
01/01/2020 00:00:00GOOG67.0875.1667.0871.71
01/01/2020 00:00:00NFLX326.10359.85321.20345.09
01/01/2020 00:00:00AAPL74.0681.9673.1977.38
01/01/2020 00:00:00AMZN93.75102.7990.77100.44
01/01/2020 00:00:00MSFT158.78174.05156.51170.23

Example Output:

avg
104.8050000000000000

Difficulty

Easy

Input

Output