1393. Capital Gain/Loss
Description
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| stock\_name | varchar |
| operation | enum |
| operation\_day | int |
| price | int |
+---------------+---------+
(stock\_name, operation\_day) is the primary key for this table.
The operation column is an ENUM of type ('Sell', 'Buy')
Each row of this table indicates that the stock which has stock\_name had an operation on the day operation\_day with the price.
It is guaranteed that each 'Sell' operation for a stock has a corresponding 'Buy' operation in a previous day.ac
Last updated