w3resource
SQL exercises

SQL: Display numbers in columns

SQL Basic Select Statement: Exercise-3 with Solution

Write a query to display three numbers in three columns.

Sample Solution :

SELECT 5, 10, 15;

:Explanation :

Syntax of display numbers in columns

Pictorial presentation :

Result of display numbers in columns


Query Visualization:

Duration:

Query visualization of Display numbers in columns - Duration

Rows:

Query visualization of Display numbers in columns - Rows

Cost:

Query visualization of Display numbers in columns - Cost

Practice Online


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

Previous: Write a query to display a string "This is SQL Exercise, Practice and Solution".
Next: Write a query to display sum of two numbers 10 and 15.

What is the difficulty level of this exercise?



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