My question asks me to "Display the trade_id, the stock_id, and the total price for the trade with the highest price total.
There is only 1 table I need to work with and that's the trade table.
Currently I have:
select trade_id,stock_id,max(price_total)
from trade
group by trade_id, stock_id;
I need to fetch the row highest trade (which I know the trade_id, and stock_id and price total for), but my Query is displaying a wide range of rows, I only need 1 row, which is the row with the highest price_total and it's corresponding stock_id and trade_id. Does anyone know how to fetch only the 1 row asked.
P.S: I know which row it is, I just can't seem to return that row only in my query result. Thank you!