how to produce numbers from 1 to 10 using dual table
Answers were Sorted based on User's Feedback
Answer / arunkumar t
select rownum from dual connect by rownum <=10
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / anil kumar prajapati
The DUAL is special one row, one column table present by
default in all Oracle databases. The owner of DUAL is SYS
(SYS owns the data dictionary, therefore DUAL is part of the
data dictionary.) but DUAL can be accessed by every user.
The table has a single VARCHAR2(1) column called DUMMY that
has a value of 'X'. MySQL allows DUAL to be specified as a
table in queries that do not need data from any tables. In
SQL Server DUAL table does not exist, but you could create
one.
The DUAL table was created by Charles Weiss of Oracle
corporation to provide a table for joining in internal
views.
Example
Select Row r
From dual
Connect By Row <= :100
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nihar ranjan nath
SELECT n FROM (SELECT ROWNUM n FROM DUAL CONNECT BY LEVEL<=10)
WHERE n<=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Hi, I want table structure shown below. How can i create this ? Num Name Address Addr1 Addr2 I want Addr1 and Addr2 under Address column. How can i achive this ? Is it possible ?
How to connect the oracle server as sysdba?
What is the difference between a primary key & a unique key?
what are archived logs?
What is Private Database Link ?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
Where is the export dump file located?
Explain oracle’s system global area (sga).
Differentiate between TRUNCATE and DELETE?
How do we know whether an index is created on a table ???
16. Display the order number, order line number and the shipping date. If the shipping date is null, display the string <not shipped yet>.
how to get last monday of a month?