i want to display 1 to 10 numbers using one select statement.
Answer Posted / kriti sinha
For in 10 rows in a single column
select level from dual connect by level<=10
for 10 numbers in a single column
select 1||chr(10)||2||chr(10)||3||chr(10)||4||chr(10)
||5||chr(10)||6||chr(10)||7||chr(10)||8||chr(10)||9||chr(10)
||10 from dual;
For 10 rows in 10 columns
select 1,2,3,4,5,6,7,8,9,10 from dual;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is the difference between nested subquery and correlated subquery?
What are the various levels of constraints?
What does partition by mean in sql?
Which table is left in join?
What is trigger with example?
How many primary keys can a table have?
Do we need to rebuild index after truncate?
Why schema is used in sql?
Which table is left in left join?
Does view store data in sql?
What is a scalar value in sql?
What is t-sql? : Transact sql
table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
What is integrity in sql?
Where are my tempfiles, I don't see them in v$datafile or dba_data_file?