What is different between union and minus?

Answer Posted / humayun quaiser


unoin:- This operator returns from all the queries(combined
through union) but not duplicate record will be display.
ex- A={1,2,3,4}
B={2,3,4,5}
AUB={1,2,3,4,5}............

Minus:- This operator displays records which belongs to only
the first query.
ex:- A={1,2,3,4}
B= {2,3,5}
A-B={1,4}...................

Is This Answer Correct ?    24 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is foreign key mandatory?

554


how to fetch alternate records from a table? : Sql dba

591


How many triggers can be applied to a table?

596


What is difference between sql and mysql?

529


What is materialized view in sql?

461






How do you respond to dementia behavior?

528


What does trigger mean in psychology?

533


What are sql built in functions?

508


How do I run a script in sql developer?

489


What is self-join and what is the requirement of self-join?

632


Explain what is table in a database?

577


If a cursor is open, how can we find in a pl/sql block?

673


how many triggers are allowed in mysql table? : Sql dba

556


Why is nosql good?

591


Explain what is dbms?

577