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 / vikneswaran

no,union all and natural join is not same. for example tave
two tame emp and dept

emp table

empid ename salary
1 a 1000
2 b 2000

dept table
deptid deptno
1 10
2 20
if i join this two tables
(empid = deptid)

empid ename salary deptno
1 a 1000 10
2 b 2000 20

if i union a11 this two tables

empid ename salary deptno
1 a 1000 null
2 b 2000 null
1 null null 10
2 null null 20
so join and unionall is not same

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why sql query is slow?

928


Explain the methods used to protect source code of pl/sql.

958


How do I partition in sql?

904


What types of commands can be executed in sql*plus?

1048


What is loop in pl sql?

980


what tools available for managing mysql server? : Sql dba

1007


Can primary key be changed?

868


How to rename a table?

956


What is the purpose of a sql?

912


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

915


Why is there a need for sqlcode and sqlerrm variables?

995


What is cursor in pl sql?

1049


What is sql in oracle?

1001


What are the two virtual tables available at the time of database trigger execution?

1156


What is a heap in sql?

991