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 a trigger in mysql? Define different types of trigger. : Sql dba

1012


Why is sql important?

1027


Can %notfound return null after a fetch?

1005


what is innodb? : Sql dba

1034


What is a unique constraint?

1016


What is coalesce sql?

943


Does sql support programming?

1008


What are the advantages of pl sql over sql?

964


How many types of cursors are available in pl/sql?

1045


What is trigger types in sql?

945


Do we need to rebuild index after truncate?

976


What are the types of sql commands?

1020


Can we create a trigger on view?

844


What is the difference between union and union all command?

1009


Does truncate need commit?

895