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


Please Help Members By Posting Answers For Below Questions

what are aggregate and scalar functions? : Sql dba

542


what is csv? : Sql dba

566


how to enter characters as hex numbers? : Sql dba

563


How to know the last executed procedure?

581


What do you mean by “trigger” in sql?

607






What is bind reference and how can it be created?

570


What is the largest value that can be stored in a byte data field?

514


What is meant by <> in sql?

499


What is the difference between in and between in sql?

567


Do triggers have restrictions on the usage of large datatypes, such as long and long raw?

676


Explain autonomous transaction.

632


How does an execution block start and end in pl sql?

491


How is pl sql different from sql?

532


Why do we need a foreign key?

541


What is break?

609