select 10 from dual; y its showing all the rows with 10?

Answer Posted / honey

1.
As we know that Implicitly Cursor 'SQL' is opened.
when it is pin pointing the 1st row in the dual, cursor
found that one record exists.
2.
since there are no conditions (i.e., where,group by,..),
directly 'select' clause will be executed.
3.
Internally Oracle identifies numbers, so 10 number will be
displayed.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are subqueries faster than joins?

581


How do you remove duplicates without using distinct in sql?

510


what is sql server agent? : Sql dba

610


Can we rollback delete command?

516


Is it mandatory for the primary key to be given a value when a new record is inserted?

715






Define commit?

568


What are sql ddl commands?

557


What is flag in sql?

551


What is the difference between mdf and ndf files?

578


What is sql*loader and what is it used for? : aql loader

628


How do rank () and dense_rank () differ?

528


How do I view a sql database?

572


What is an ndf file?

538


Is pl sql a programming language?

559


What is implicit cursor in pl sql?

546