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;

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can update the view?

1054


Can we insert delete data in view?

954


Why do we need a foreign key?

1104


Explain sql data types?

1107


What is the difference between sql, mysql and sql server?

1111


What is pragma in sql?

1086


What is sql*loader?

1200


Explain scalar functions in sql?

1074


How do you run a query?

995


How does a covering index work?

970


What is the non-clustered index in sql?

1067


What are the types of views in sql?

1104


How many tables can a sql database have?

982


How to use boolean type in select statement?

1084


What are the types of sql commands?

1107