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 is the difference between join and union.

Answer Posted / nitin

for SET operators the resultant column set should be same for the tables.
i.e.
select * from boy
union
select * from girl
will give an error if they have different column
but in join you can corellete the column to each other.

select * from boy,girl where boy.id_gender=girl.id_gender;

will give result

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is auto increment in sql?

1128


How does sql*loader handles newline characters in a record? : aql loader

1046


How to make a copy values from one column to another in sql?

1037


What does plv msg allows you to do?

1143


What is use of trigger?

933


What is pl sql architecture?

964


Can we change the table name in sql?

943


Why we use sql profiler?

963


Does pl sql work in mysql?

986


What does the base_object_type column shows in the user.triggers data dictionary view?

1055


Which join is default?

958


Name the operator which is used in the query for pattern matching?

958


What is the requirement of self-join?

1133


Is mariadb nosql?

1041


How do I save a sql query?

1018