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 can we optimize a sql query?
What is file based approach?
Can we connect to postgresql using sql developer?
What does subquery mean in sql?
How do you break a loop in pl sql?
explain the difference between myisam static and myisam dynamic. : Sql dba
What is the purpose of the sql select top clause?
What is data modelling in sql?
What is cursor and why it is required?
How much does sql cost?
Define SQL and state the differences between SQL and other conventional programming Languages?
Are stored procedures faster than queries?
what is cursor. write example of it. What are the attributes of cursor.
Which command is used to delete a package?
What is Collation Sensitivity ? What are the various type ?