diff --git a/README.adoc b/README.adoc index efc6fe3..2ca1dd4 100644 --- a/README.adoc +++ b/README.adoc @@ -1,3 +1,3 @@ // Replace with the name of your repository, and replace with the title of the tutorial. // For guidance on using this template, see .github/CONTRIBUTING.adoc -This repository hosts the documentation and code samples for the link:https://docs.hazelcast.com/tutorials/sql_stock_ticker_cloud_[SQL Basics - Stock Ticker on Hazelcast Cloud]. +This repository hosts the documentation and code samples for the link:https://docs.hazelcast.com/tutorials/sql_stock_ticker_cloud[SQL Basics - Stock Ticker on Hazelcast Cloud]. diff --git a/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc b/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc index be27c37..b1729d6 100644 --- a/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc +++ b/docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc @@ -87,7 +87,7 @@ EXTERNAL NAME "sql_basics.trades" ( ticker varchar, price double, trade_ts timestamp with time zone, - amt int + amount int EXTERNAL NAME amt ) DATA CONNECTION "TrainingKafkaConnection" OPTIONS ( @@ -187,7 +187,7 @@ SELECT trades.ticker AS Symbol, companies.company as Company, ROUND(trades.price,2) AS Price, - trades.amt AS "Shares Sold" + trades.amount AS "Shares Sold" FROM trades_topic AS trades JOIN companies ON companies.ticker = trades.ticker; @@ -325,7 +325,7 @@ SELECT pr.average AS Average, ROUND(((tro.price/pr.average)-1)*100,2) AS Percent_Change, CASE - WHEN (ROUND(((tro.price/pr.average)-1)*100,2) > 1) THEN 'Up' + WHEN (ROUND(((tro.price/pr.average)-1)*100,2) > 0) THEN 'Up' ELSE 'Down' END AS Up_Down FROM trades_ordered AS tro @@ -380,7 +380,7 @@ SELECT * FROM high_low_enriched; + ```sql SELECT * FROM high_low_enriched - WHERE ticker = "APPL"; + WHERE ticker = 'APPL'; ``` . Create an IMap to serve as a sink for the data generated by `high_low_enriched`. +