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 / mani
WITH a as (SELECT level L from DUAL CONNECT BY level <=3)
SELECT 1, L, R
FROM (SELECT level R from DUAL CONNECT BY level <=3) b
CROSS JOIN a;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can you rollback after commit?
Where are my tempfiles, I don't see them in v$datafile or dba_data_file?
how to load data files into tables with 'mysqlimport'? : Sql dba
Explain the methods used to protect source code of pl/sql.
What is a sql trace file?
what is myisam? : Sql dba
Which certification is best for sql?
What is an inconsistent dependency?
What is cartesian join in sql?
What is compute?
Is oracle and sql same?
What is cost in sql execution plan?
What is information schema in sql?
Explain what is a database?
how to rename an existing column in a table? : Sql dba