Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


i want to display 1 to 10 numbers using one select statement.

Answers were Sorted based on User's Feedback



i want to display 1 to 10 numbers using one select statement...

Answer / subrat

SELECT LEVEL
FROM DUAL
CONNECT BY LEVEL<=9;

Is This Answer Correct ?    0 Yes 0 No

i want to display 1 to 10 numbers using one select statement...

Answer / gangadhar

SQL> select *
2 from xmltable('for $i in 1 to 10 return $i');

Is This Answer Correct ?    0 Yes 0 No

i want to display 1 to 10 numbers using one select statement...

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

i want to display 1 to 10 numbers using one select statement...

Answer / pushkar

use sequence. automatically increments.

Is This Answer Correct ?    10 Yes 27 No

i want to display 1 to 10 numbers using one select statement...

Answer / rashmi raju

select 1,2,3,4,5,6,7,8,9,10 from dual;

Is This Answer Correct ?    3 Yes 20 No

i want to display 1 to 10 numbers using one select statement...

Answer / ameer mujahid

select rownum from employees;

Is This Answer Correct ?    0 Yes 19 No

i want to display 1 to 10 numbers using one select statement...

Answer / aditya

select 1,2,3,4,5,6,7,8,9,10

Is This Answer Correct ?    1 Yes 27 No

i want to display 1 to 10 numbers using one select statement...

Answer / seshu

select in(1,10)
from dual;

Is This Answer Correct ?    15 Yes 71 No

Post New Answer

More SQL PLSQL Interview Questions

How do I find duplicates in sql?

0 Answers  


What is cartesian join in sql?

0 Answers  


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.

15 Answers   Wipro,


What is information schema in sql?

0 Answers  


How can you save or place your msg in a table?

0 Answers  


Why do we need sharding?

0 Answers  


Explain character-manipulation functions?

0 Answers  


How can you load multi line records? : aql loader

0 Answers  


difference between cursor and procedure in a package

3 Answers   PCS,


how to include character strings in sql statements? : Sql dba

0 Answers  


Is full outer join same as cross join?

0 Answers  


Explain two virtual tables available at the time of database trigger execution.

1 Answers  


Categories