What is the difference between join and union.
Answer Posted / lalitha
join:
The SQL JOIN clause is used whenever we have to select data
from 2 or more tables.
To be able to use SQL JOIN clause to extract data from 2
(or more) tables, we need a relationship between certain
columns in these tables.
union:
The purpose of the SQL UNION command is to combine the
results of two queries together. In this respect, UNION is
somewhat similar to JOIN in that they are both used to
related information from multiple tables. One restriction
of UNION is that all corresponding columns need to be of
the same data type. Also, when using UNION, only distinct
values are selected (similar to SELECT DISTINCT).
| Is This Answer Correct ? | 35 Yes | 11 No |
Post New Answer View All Answers
Is delete faster than truncate?
What is the usage of nvl function?
Show the cursor attributes of pl/sql.
How many sectors are in a partition?
Is sql a backend language?
How many parts of a pl sql block are optional?
What does count (*) do in sql?
Is it possible to pass parameters to triggers?
What is raid? How does it help storage of databases?
List different type of expressions with the example.
What is attribute indicator in pl sql?
What pl/sql package consists of?
What is sql in java?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
What is the use of sql trace?