Explain UNION,MINUS,UNION ALL, INTERSECT?

Answer Posted / pavan_1981

UNION:set of all rows selected by both queries excluding
duplicates rows.
UNIONALL:set of all rows selected by both queries including
duplicate rows.
MINUS:set of all rows present in the first query and not
present in the second query.
INTERSECT:set of all rows commonly returned by both the
queries.

Is This Answer Correct ?    20 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the rollback statement?

769


how to do backup entire database? : Transact sql

880


What is the basic structure of an sql?

754


Which is faster view or stored procedure?

688


How subquery works in sql?

727






what is subquery? : Sql dba

773


Does access use sql?

750


what are the advantages and disadvantages of views in a database? : Sql dba

761


How many primary keys can a table have?

720


what is a composite key ? : Sql dba

798


What is composite data type in pl sql?

766


What is the difference between execution of triggers and stored procedures?

748


What is the use of partition by in sql?

712


What is trigger types of trigger?

718


Explain scalar functions in sql?

772