salix/db/versions/.archive/10502-yellowCordyline/00-firstScript.sql

9 lines
251 B
MySQL
Raw Normal View History

-- 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;