For example, I have a table as shown below in my database:
| Product ID | Item Name | Price | Item Status |
where Item ID = int, Item Name = string, Price = int, Item Status = Enum
where according to the status of the position ... Let "2" represent "Coming Soon",
"1" means "Available,"
while "0" means "Sold"
I want to show the information so that I can say that the user who is viewing the output table knows the status in a more acceptable output (row), and does not look at the Enum values:
| Item ID | Item Name | Price | Item Status | **Description** |
| 123 | Apple | [some number] | 0 | Sold Out |
| 234 | Orange | [some number] | 2 | Coming Soon |
where Description is a temporary column that I would like to display as additional information.
, GO?
, . .