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 are the different types of a subquery?

1044


How to run sql commands in sql*plus?

1175


What is not in sql?

943


What is graph sql?

987


What is row_number () in sql?

978


How do I send sql query results to excel?

1066


What is on delete set null?

1087


What is range partitioning?

962


What are primary key and foreign key and how they work?

976


Is sql considered coding?

1043


What is the cause of mutating table error and how can we solve it?

1047


Which constraints we can use while creating database in sql?

1079


what are the performance and scalability characteristics of mysql? : Sql dba

996


What is a natural join sql?

966


What are the most important characteristics of pl/sql?

1153