9 lines
251 B
MySQL
9 lines
251 B
MySQL
|
-- Place your SQL code here
|
||
|
ALTER TABLE vn.sale
|
||
|
ADD COLUMN total DECIMAL(10,2)
|
||
|
AS (price * quantity * (100 - discount) / 100) VIRTUAL;
|
||
|
|
||
|
ALTER TABLE vn.claim
|
||
|
ADD COLUMN responsabilityRate DECIMAL(3,2)
|
||
|
AS ((5 - responsibility) / 4) VIRTUAL;
|