Skip to content

Commit ded7b66

Browse files
committed
add high/low price query
1 parent f88f10d commit ded7b66

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sql/Redshift_queries.sql

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ SELECT
1515
volume_traded
1616
FROM "mydb"."public"."bitcoin_prices"
1717
ORDER BY volume_traded DESC
18-
LIMIT 1;
18+
LIMIT 1;
19+
20+
--High and Low Price
21+
SELECT
22+
max(price_high),
23+
min(price_low)
24+
FROM "mydb"."public"."bitcoin_prices";

0 commit comments

Comments
 (0)