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
How do you use collections in procedure to return the resultset?
What is procedure and function in sql?
What are the advantages of sql?
How many sql statements are used? Define them.
What is insert command in sql?
I need a function for a train ticket reservation please answer it thanks in advance
What is pls_integer in pl sql?
Can a varchar be a primary key?
What is data profiling in sql?
What are the two characteristics of a primary key?
What is difference between sql and oracle?
What is blind sql injection?
What is a recursive stored procedure?
discuss about myisam index statistics collection. : Sql dba
Can we use ddl commands in pl sql?