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 mdb stand for?
how to use case expression? : Sql dba
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
Why do we create views in sql?
How can you save or place your msg in a table?
hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews
What programs use sql?
what is the difference difference between procedure and packages
What is difference sql and mysql?
how to get @@error and @@rowcount at the same time? : Sql dba
What are system versioned tables?
Can there be more than one function with a similar name in a pl/sql block?
Difference between global and parameter variables?
Can we group by two columns in sql?
What is the difference between a primary key and a clustered index?