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...


what will be the output:
select 1 from emp
union all
select 2 from emp;

Answers were Sorted based on User's Feedback



what will be the output: select 1 from emp union all select 2 from emp;..

Answer / m.m

1 will be printed as many times as the number of rows in
emp table
followed by 2 begin printed as many times as the number of
rows in emp table
OP:
1
----------
1
1
1
1
1
1
1
1
1
1
1

1
----------
1
1
1
2
2
2
2
2
2
2
2

1
----------
2
2
2
2
2
2

28 rows selected.

Is This Answer Correct ?    22 Yes 6 No

what will be the output: select 1 from emp union all select 2 from emp;..

Answer / ankush

it returns the number 1 same number columns as well as
union with the value 2 again with the same number of
columns the table emp have.

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More SQL PLSQL Interview Questions

how to return query output in html format? : Sql dba

0 Answers  


explain the options of myisamchk to improve the performance of a table. : Sql dba

0 Answers  


Is pl sql better than sql?

0 Answers  


Is left join inner or outer?

0 Answers  


How do I install microsoft sql?

0 Answers  


Give which cursor is better for better performance means type of cursors?

2 Answers  


What is trigger in sql?

0 Answers  


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

0 Answers  


How do I clear the screen in sql plus?

0 Answers  


7. Where would you look for errors from the database design?

1 Answers   Fintellix,


How do you truncate?

0 Answers  


in materialized view the structure will create immediately or not?

2 Answers   iFlex,


Categories