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
What is a loop in sql?
What is pl sql block in dbms?
What are the benefits of triggers?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
What is the purpose of the sql select top clause?
Is pl sql different from sql?
Why are indexes and views important to an organization?
How do you delete data from a table?
Describe sql comments?
What is transaction control language (tcl)?
What has stored procedures in sql?
What is sql prepared statement?
Is pl sql useful?
What is bind variable in pl sql?
What is delimiter in pl sql?