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

Answer Posted / srinivas

select rownum rn from (select 1 from dual group by
cube(1,2,3,4,5)) where rownum <=10

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hibernate and its relation to sql?

598


Is sqlexception checked or unchecked?

548


how can we destroy the session, how can we unset the variable of a session? : Sql dba

558


what is blob? : Sql dba

568


What are sql triggers used for?

517






Is sql better than excel?

523


What does count (*) mean in sql?

1106


What is a subquery in sql?

517


what is 'mysqlimport'? : Sql dba

578


how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc

3267


What is a database trigger?

620


What are the parts of a sql statement?

565


What does (*) mean in sql?

534


What is difference sql and mysql?

541


What are the types of variables use in pl sql?

515