Baselight
SELECT 
  s.date_formatted AS "date",
  s.stock_price * 10 AS stock_price,  -- re-scaled the axis to make the price trend more visual.
  g.gpu_retail_price,
  g.gpu_used_price
FROM (
  SELECT 
    CAST("date" AS DATE) AS date_formatted,
    AVG("close") AS stock_price
  FROM 
    @kaggle.samanfatima7_nvidia_stocks_historical_data.nvidia
  GROUP BY 
    date_formatted
) s
INNER JOIN (
  SELECT 
    STRPTIME("date", '%d-%m-%y') AS date_formatted,
    AVG("retail_price") AS gpu_retail_price,
    AVG("used_price") AS gpu_used_price
  FROM 
    @kaggle.mannacharya_historical_gpu_prices_nvidia_and_amd.gpu_price_history
  GROUP BY 
    date_formatted
) g
ON s.date_formatted = g.date_formatted
ORDER BY 
  s.date_formatted ASC;
datestock_pricegpu_retail_pricegpu_used_price
2023-02-01209.4300079345703586.4137931034483426.37931034482756
2023-03-01226.97999954223636439.5135135135135329.6216216216216
2023-05-01289.0999984741211436.0263157894737312.1578947368421
2023-06-01397.7000045776367436.0243902439024280.9268292682927
2023-08-01465.0699996948242439.2926829268293277.0731707317073
2023-09-01485.0899887084961433.0232558139535283.27906976744185
2023-11-01423.25000762939453423.7906976744186282.6511627906977
2023-12-01467.6499938964844403.27906976744185286.8837209302326
2024-02-01630.2700042724609436.4888888888889282.26666666666665
2024-03-01822.7899932861328491.5342.3958333333333
2024-04-01903.6299896240234471.1041666666667337.6875
2024-05-01830.4100036621094460.6875325.4791666666667
2024-07-011243.000030517578499.5208333333333310.7916666666667
2024-08-011092.0999908447266509.0833333333333307.375
2024-10-011170509.8958333333333309.7291666666667

Share link

Anyone who has the link will be able to view this.