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

Please let me know if UNION ALL and Natural Join does the
same operation and are same...

Answer Posted / vasanth

Hi All....!

Natural join is the same as an equi join on (emp.deptno =
dept.deptno).

Natural joins may cause problems if columns are added or
renamed. Also, no more than two tables can be joined using
this method. So, it is best to avoid natural joins as far
as possible.

If you will come to UNION ALL.

UNION ALL query allows you to combine the result sets of 2
or more "select" queries. It returns all rows (even if the
row exists in more than one of the "select" statements.

Each SQL statement within the UNION ALL query must have the
same number of fields in the result sets with similar data
types.

For Example :-

select field1, field2, . field_n
from tables
UNION ALL
select field1, field2, . field_n
from tables;

Is This Answer Correct ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the command to remove all players named sachin from the players table.

1121


what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

994


What are operators available in sql?

979


Explain sql data types?

1035


What do you mean by field in sql?

1034


How to rename a column in the output of sql query?

1000


What is a parameter query?

1020


how to select unique records from a table? : Sql dba

1053


What does the acronym acid stand for in database management?

983


What is a sql*loader control file?

1159


what is the difference between primary key and unique key? : Sql dba

969


What is sqlerrm?

882


How do you explain an index?

1222


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

1001


Is primary key clustered index?

898