Skip to content

Commit

Permalink
Update sql_stock_ticker_cloud.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
naadhira committed Feb 19, 2024
1 parent 6c47303 commit 96734cc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/modules/ROOT/pages/sql_stock_ticker_cloud.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,20 @@ 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"
FROM trades;
FROM trades_topic;
```
. Limit the output to one stock symbol.
+
```sql
SELECT ticker AS Symbol, ROUND(price,2) AS Price, amount AS "Shares Sold"
FROM trades
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"
FROM trades
FROM trades_topic
WHERE ticker = 'VOO' AND amount > 50;
```

Expand Down Expand Up @@ -186,8 +186,8 @@ SELECT
trades.ticker AS Symbol,
companies.company as Company,
ROUND(trades.price,2) AS Price,
trades.amount AS "Shares Sold"
FROM trades
trades.amt AS "Shares Sold"
FROM trades_topic AS trades
JOIN companies
ON companies.ticker = trades.ticker;

Expand All @@ -208,7 +208,7 @@ For a detailed description of watermarking and window types, refer to the https:
CREATE OR REPLACE VIEW trades_ordered AS
SELECT *
FROM TABLE(IMPOSE_ORDER(
TABLE trades,
TABLE trades_topic,
DESCRIPTOR(trade_ts),
INTERVAL '0.5' SECONDS));
```
Expand Down Expand Up @@ -449,9 +449,9 @@ In this tutorial, you learned the following:
== See Also

// Optionally, add some links to resources, such as other related guides.
https://docs.hazelcast.com/hazelcast/5.2/sql/querying-streams[Querying Streams] (Documentation)
https://docs.hazelcast.com/hazelcast/latest/sql/querying-streams[Stream Processing in SQL] (Documentation)

https://docs.hazelcast.com/hazelcast/5.2/sql/sql-statements[SQL Statements] (Documentation)
https://docs.hazelcast.com/hazelcast/latest/sql/sql-statements[SQL Statements] (Documentation)

https://docs.hazelcast.com/tutorials/join-two-streams[Stream-to-Stream Joins] (Tutorial)

Expand Down

0 comments on commit 96734cc

Please sign in to comment.