Check out Codility training tasks

Your browser is not supported. Please, update your browser or switch to a different one. Learn more about which browsers are supported.

Tasks Details
elementary
1. SqlSum
Calculate sum of elements.
Task Score
100%
Correctness
100%
Performance
Not assessed

Task description

Given a table elements with the following structure:

create table elements ( v integer not null )

write an SQL query that returns the sum of the numbers in column v.

For example, given:

v --- 2 10 20 10

your query should return 42.

Copyright 2009–2025 by Codility Limited. All Rights Reserved. Unauthorized copying, publication or disclosure prohibited.
Solution
Programming language used SQL (PostgreSQL)
Time spent on task 1 minutes
Notes
not defined yet

Task timeline