ClickHouse/tests/queries/0_stateless/03236_test_zero_field_decimal.sql
Arthur Passos b55c2df393 naive fix
2024-09-25 17:06:44 -03:00

11 lines
375 B
SQL

-- Tags: no-parallel
DROP TABLE IF EXISTS users_03236_zero;
CREATE TABLE users_03236_zero (uid Int16, name String, num Int16) ENGINE=Memory;
INSERT INTO users_03236_zero VALUES (1231, 'John', 33);
INSERT INTO users_03236_zero VALUES (6666, 'John', 48);
INSERT INTO users_03236_zero VALUES (8888, 'Alice', 50);
select sum(num/toDecimal256(1000, 18)) from users_03236_zero;