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 difference between mysql and postgresql?
Does a join table need a primary key?
What is trigger explain it?
What type of database is sql?
How do you go back in sql?
How does postgresql compare to oracle/db2/ms sql server/informix?
Explain select statements in sql?
Why do we use procedures in pl sql?
what are the 'mysql' command line arguments? : Sql dba
What is a heap in sql?
How do I create a memory optimized filegroup?
What mean sql?
What is difference between sql and mysql?
Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?
What are aggregate functions in sql?