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 string data type in sql?
What is a function in oracle pl sql?
What is difference between nchar and nvarchar?
what is an alias command? : Sql dba
What is function and procedure in pl sql?
What are the basic sql commands?
Explain character-manipulation functions?
how to enter numeric values as hex numbers? : Sql dba
Is inner join faster than left join?
how to extract a unit value from a date and time? : Sql dba
What is a constraint? Tell me about its various levels.
How many triggers can be applied to a table?
What is the difference between microsoft sql and mysql?
What is the requirement of self-join?
Can we perform dml in function?