Skip to content

Commit

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

== Step 3. Enriching the Data
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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.amt AS shares,
tro.amount AS shares,
tro.trade_ts
FROM trades_ordered AS tro
JOIN companies
Expand Down

0 comments on commit d08abff

Please sign in to comment.