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
What is forward declaration in pl sql?
What are the benefits of triggers?
how is myisam table stored? : Sql dba
The select into statement is most often used to create backup copies of tables or for archiving records?
How many triggers can be applied on a table?
Define SQL and state the differences between SQL and other conventional programming Languages?
what is 'mysqlshow'? : Sql dba
how to do backup entire database? : Transact sql
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
What is a join?
Is postgresql a server?
What is sql clause?
What is the difference between microsoft access and sql server?
What are the advantages of pl sql over sql?
Is keyword pl sql?