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 optimize a stored procedure in sql?
What are tuples in sql?
what are local and global variables and their differences? : Sql dba
what is a composite primary key ? : Sql dba
What is the maximum number of rows in sql table?
Write a sql query to find the names of employees that begin with ‘a’?
Can we use two order by clause in query?
What is mdb stand for?
Is natural join and inner join same?
How to add, remove, modify users using sql?
What are the benefits of stored procedures?
What is optimistic concurrency control? : Transact sql
What is the difference between local and global temporary table?
What does the base_object_type column shows in the user.triggers data dictionary view?
what is a constraint? Tell me about its various levels. : Sql dba