What is different between union and minus?

Answer Posted / ajinkyasingh bais

The SQL UNION clause/operator is used to combine the results of two or more SELECT statements without any duplicate rows.
whereas
The SQL MINUS clause/operator is used to combine two SELECT statements,but returns rows only from the first SELECT statement that are identical to a row in the second SELECT statement

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best sql course?

616


How to add a column ‘salary’ to a table employee_details?

671


What is cartesian join in sql?

641


How to use sql*plus built-in timers?

666


What is sql*plus?

666






How to return an array from java to pl/sql?

686


what is 'mysqlimport'? : Sql dba

641


What are different categories of sql commands?

719


What is string data type in sql?

629


Can a table contain multiple primary key’s?

705


Is it possible to create startup or shutdown trigger for on-schema?

675


What are the differences between implicit and explicit cursors?

615


What are the different datatypes available in PL/SQL?

649


What is sql exception?

621


What is sql injection vulnerability?

585