??: ??? "?" ?, ? ????? ???? user_id? ?? ?? "?" ???? ???.
?? "A"? ?? ?? ?? "user_id"? ??"?" ?? 0.01??? ? 2? 0.04? ???.
?????.
????? ?? ??? ???? ?? ?? ???? ? ??? ??? ??? ??? ?? ?? ???? ????. ?? ??? ??? ????.
???? | ???_ID | ?? |
---|---|---|
?? | 1 | 0.01 |
?? | 2 | 0.05 |
? | 4 | 0.34 |
? | 7 | 0.27 |
? ?? ? ?? "?" ??? "??" ? ? ??? "user_id"?? ???. ??? ? ?? ?? ?? ??? "A"?? "A"? ?? ?? "user_id"? 1??? (0.05 - 1)? ???.
? ?? ?? ?? ????. ?? ?? ?? ????.
?? ??? ???? ????
??? ??? ?? ?? ? ?? ?? ? ??? ?? ???? ?? ???? ??? ?? ????.
?????? ??? ? ?? ????? 0? ????(?? ??? ?? ?????).
??? ??? ??????
??? ??? ????:
CREATE TABLE new_table AS (select * FROM table_1); ALTER TABLE new_table ADD COLUMN `new_column` DECIMAL(3,2) GENERATED ALWAYS AS (table_1.value-table_1.value) STORED; select * from new_table;