What is the difference between join and union.

Answer Posted / prasad

The JOIN keyword is used in an SQL statement to query data from two or more tables, based on a relationship between certain columns in these tables.





The UNION operator is used to combine the result-set of two or more SELECT statements.
Notice that each SELECT statement within the UNION must have the same number of columns. The columns must also have similar data types. Also, the columns in each SELECT statement must be in the same order.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

tell us something about heap tables. : Sql dba

591


what are the advantages of sql ? : Sql dba

539


What are the two characteristics of a primary key?

483


What are triggers in sql?

576


What are the different types of joins in sql?

579






What is mutating table error?

653


what is column? : Sql dba

566


What is a common use of group by in sql?

588


What is sql partition function?

610


What is dense_rank in sql?

536


What is scalar data type in pl sql?

546


What are the benefits of stored procedures?

530


Explain ddl statements in pl/sql?

572


What is indexes?

536


What is varchar example?

567