I'd like to create the following table using SQL and Redshift, but I'm unsure how to go about creating this sort of table from scratch
value
1
2
3
4
5
6
7
8
9
10
I've tried the following query based on this question
SELECT ones.n + 10*tens.n + 1000
FROM (VALUES(0),(1),(2),(3),(4),(5),(6),(7),(8),(9)) ones(n),
(VALUES(0),(1),(2),(3),(4),(5) ) tens(n)
WHERE ones.n + 10*tens.n + 1000 BETWEEN 0 AND 10
But I get the following error:
syntax error at or near ","
Position: 52
SELECT ones.n + 10*tens.n + 1000
FROM (VALUES(0),(1),(2),(3),(4),(5),(6),(7),(8),(9)) ones(n),
^
(VALUES(0),(1),(2),(3),(4),(5) ) tens(n)