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
How to return multiple rows from the stored procedure?
What is the difference between syntax error and runtime error?
what is a composite key ? : Sql dba
What is sqlca in db2?
Is sql open source?
Is sql a backend?
What is Collation Sensitivity ? What are the various type ?
What is before trigger?
What is bulk compiling in pl/sql.?
What is ttitle and btitle?
What view means?
What are the different types of triggers?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
What are the limitations of sql express?
What is pl sql and why it is used for?