Check out Codility training tasks
Tasks Details
elementary
1. SqlSum
Calculate sum of elements.
Task Score
100%
Correctness
100%
Performance
Not assessed

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–2024 by Codility Limited. All Rights Reserved. Unauthorized copying, publication or disclosure prohibited.
Solution
Programming language used SQL (PostgreSQL)
Total time used 1 minutes
Effective time used 1 minutes
Notes
not defined yet
Task timeline