Write the sql query using dual table for below output?
1 L R
--- --- ----
1 1 1
1 2 1
1 3 1
1 1 2
1 2 2
1 3 2
1 1 3
1 2 3
1 3 3
Write a query using only Dual table with out writing any pl/sql program.
Answer Posted / abilash reddy
SELECT 1, L, R FROM (SELECT LEVEL R FROM DUAL CONNECT BY LEVEL<=3), (SELECT LEVEL L FROM DUAL CONNECT BY LEVEL<=3);
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
what is data control language? : Sql dba
Can we create index on primary key?
what is meant by urlencode and urldocode? : Sql dba
Why use subqueries instead of joins?
what are aggregate and scalar functions? : Sql dba
Is sql better than access?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
What is a primary key? Explain
Can we create clustered index without primary key?
how are mysql timestamps seen to a user? : Sql dba
Explain the difference between rename and alias?
What is data definition language?
How does sql*loader handles newline characters in a record? : aql loader
how to start mysql server? : Sql dba
What are the two characteristics of a primary key?