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

union all: Joins the 2 selected results based on different
conditions.

Example:
select a.emp_id, b.dept_id from
emp a, dept b
where a.dept_id=b.dept_id
and a.sal < 3000
union all
select a.emp_id, b.dept_id from
emp a, dept b
where a.dept_id=b.dept_id
and a.sal > 6000


Natural Join: Establish the condition between 2 or more
tables.

Example: select a.emp_id, b.dept_id from
emp a, dept b
where a.dept_id=b.dept_id

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of a subquery?

1103


What is sqlerrm?

986


Mention what is the use of function "module procedure" in pl/sql?

1088


Why self join is used in sql?

1031


How many developers work on postgresql?

1042


Explain the rollback statement?

1072


What does trigger mean in slang?

1123


What is the difference between function, procedure and package in pl/sql?

1354


Are stored procedures faster than dynamic sql?

1105


What is sql*loader and what is it used for? : aql loader

1249


What are the sql commands?

1230


Can we use threading in pl/sql?

1096


When to use inner join and left join?

1019


What does select * from mean in sql?

3335


what are properties of a transaction? : Sql dba

1135