SQL-Powered Financial Data Dashboard
| Symbol | Company | Price | Change | % Change | Volume | Market Cap | Action |
|---|
| Symbol | Shares | Avg. Cost | Current Price | Market Value | Gain/Loss | % Gain/Loss | Action |
|---|
Explore the SQL queries powering this financial dashboard
SELECT
s.symbol,
s.company_name,
s.current_price,
s.previous_close,
((s.current_price - s.previous_close) / s.previous_close) * 100 as change_percent,
s.volume,
s.market_cap
FROM stocks s
WHERE s.trading_date = CURDATE()
ORDER BY change_percent DESC
LIMIT 10;
SELECT
i.index_name,
i.current_value,
i.open_value,
i.high_value,
i.low_value,
((i.current_value - i.open_value) / i.open_value) * 100 as daily_change
FROM market_indices i
WHERE i.trading_date = CURDATE()
ORDER BY daily_change DESC;
Select a query to see results...