i want to display 1 to 10 numbers using one select statement.
Answers were Sorted based on User's Feedback
Answer / gangadhar
SQL> select *
2 from xmltable('for $i in 1 to 10 return $i');
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / hemant
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
/
| Is This Answer Correct ? | 6 Yes | 12 No |
How do I find duplicates in sql?
What is cartesian join in sql?
I want to display the employees who have joined in last two months. (It should be executed randomly means If I execute the query in March it should display Jan and Feb joined employees. Same query if i execute in Feb, 2007 it should display dec, 2006 and jan 2007 joined employees.
What is information schema in sql?
How can you save or place your msg in a table?
Why do we need sharding?
Explain character-manipulation functions?
How can you load multi line records? : aql loader
difference between cursor and procedure in a package
how to include character strings in sql statements? : Sql dba
Is full outer join same as cross join?
Explain two virtual tables available at the time of database trigger execution.
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)