Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



Write the sql query using dual table for below output? 1 L R --- --- ---- 1 1 1 1 2 ..

Answer / 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

Write the sql query using dual table for below output? 1 L R --- --- ---- 1 1 1 1 2 ..

Answer / shailesh

select 1 as "1", decode(mod(level,3), 0, 3, mod(level,3))as l,
case
when level<=3 then 1
when level>3 and level <7 then 2
else
3
end as r
from dual connect by level<10;

Is This Answer Correct ?    5 Yes 0 No

Write the sql query using dual table for below output? 1 L R --- --- ---- 1 1 1 1 2 ..

Answer / 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

More SQL PLSQL Interview Questions

Does a user_objects view have an entry for a trigger?

0 Answers  


what are the t string functions available in tsql? : Transact sql

0 Answers  


Explain what is dbms?

0 Answers  


Explain spool.

0 Answers  


Which version of sql do I have?

0 Answers  


What are the types of queries in sql?

0 Answers  


How to install oracle sql developer?

0 Answers  


Name some usages of database trigger?

0 Answers  


How packaged procedures and functions are called from the following?

2 Answers  


does sql support programming? : Sql dba

0 Answers  


Write a pl/sql script to display the following series of numbers: 99,96,93……9,6,3?

1 Answers  


How do I save the results of sql query in a file?

0 Answers  


Categories