Your browser (Unknown 0) is no longer supported. Some parts of the website may not work correctly. Please update your browser.
Calculate sum of elements.
Programming language:

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–2020 by Codility Limited. All Rights Reserved. Unauthorized copying, publication or disclosure prohibited.