Changeset 9e6d8a2 for server/db/schema_creation.sql
- Timestamp:
- 09/17/26 00:36:39 (13 days ago)
- Branches:
- main
- Children:
- 4438e45
- Parents:
- 35bcb41
- File:
-
- 1 edited
-
server/db/schema_creation.sql (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
server/db/schema_creation.sql
r35bcb41 r9e6d8a2 261 261 avg_price numeric, 262 262 market_return_pct numeric, 263 price_volatility numeric,264 263 participating_users bigint 265 264 ) … … 281 280 COUNT(*) AS trade_count, 282 281 AVG(price) AS avg_price, 283 STDDEV(price) AS price_volatility,284 282 MAX(first_price) AS first_price, 285 283 MAX(last_price) AS last_price … … 300 298 ROUND(ms.avg_price, 6) AS avg_price, 301 299 ROUND((ms.last_price - ms.first_price) / NULLIF(ms.first_price, 0) * 100, 2) AS market_return_pct, 302 ROUND(COALESCE(ms.price_volatility, 0), 6) AS price_volatility,303 300 COALESCE(p.participating_users, 0) AS participating_users 304 301 FROM market_stats ms
Note:
See TracChangeset
for help on using the changeset viewer.
