diff --git a/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc b/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc index b1729d6..8a8f200 100644 --- a/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc +++ b/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc @@ -124,22 +124,22 @@ Because the data is randomly generated, you may have to wait several seconds for + ```sql -SELECT ticker AS Symbol, ROUND(price,2) AS Price, amount AS "Shares Sold" +SELECT ticker AS Symbol, ROUND(price,2) AS Price, amt AS "Shares Sold" FROM trades_topic; ``` . Limit the output to one stock symbol. + ```sql -SELECT ticker AS Symbol, ROUND(price,2) AS Price, amount AS "Shares Sold" +SELECT ticker AS Symbol, ROUND(price,2) AS Price, amt AS "Shares Sold" FROM trades_topic WHERE ticker = 'APPL'; ``` . Limit the output to one symbol and sales of over 50 shares. + ```sql -SELECT ticker AS Symbol, ROUND(price,2), amount AS "Shares Sold" +SELECT ticker AS Symbol, ROUND(price,2), amt AS "Shares Sold" FROM trades_topic -WHERE ticker = 'VOO' AND amount > 50; +WHERE ticker = 'VOO' AND amt > 50; ``` == Step 3. Enriching the Data @@ -348,7 +348,7 @@ CREATE OR REPLACE VIEW tro_enriched AS tro.ticker AS ticker, companies.company as company, ROUND(tro.price,2) AS price, - tro.amount AS shares, + tro.amt AS shares, tro.trade_ts FROM trades_ordered AS tro JOIN companies