w3resource
SQL exercises

SQL: Display sum of two numbers

SQL Basic Select Statement : Exercise-4 with Solution.

Write a query to display sum of two numbers 10 and 15.

Sample Solution :

SELECT 10 + 15;

Output of the Query:

?column?
25

Explanation :

Syntax of display sum of two numbers

Pictorial presentation :

Result of the sum of two numbers

Query Visualization:

Duration:

Query visualization of Display sum of two numbers - Duration

Rows:

Query visualization of Display sum of two numbers - Rows

Cost:

Query visualization of Display sum of two numbers - Cost

Practice Online


Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a query to display three numbers in three columns.
Next: Write a query to display the result of an arithmetic simplification.

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming