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
Why sql query is slow?
Explain the methods used to protect source code of pl/sql.
How do I partition in sql?
What types of commands can be executed in sql*plus?
What is loop in pl sql?
what tools available for managing mysql server? : Sql dba
Can primary key be changed?
How to rename a table?
What is the purpose of a sql?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
Why is there a need for sqlcode and sqlerrm variables?
What is cursor in pl sql?
What is sql in oracle?
What are the two virtual tables available at the time of database trigger execution?
What is a heap in sql?