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

What are the two characteristics of a primary key?

495


Is sql dba a good career? : SQL DBA

537


What is a stored procedure in sql with example?

606


What are types of joins?

538


what is the difference between myisam static and myisam dynamic? : Sql dba

585






Can we create index on primary key?

524


What is secondary key?

510


What are the most important ddl statements in sql?

577


how can we know the count/number of elements of an array? : Sql dba

576


What is compound trigger?

560


Can a commit statement be executed as part of a trigger?

605


Is truncate ddl or dml?

545


How do you optimize a query?

540


How to assign sql query results to pl sql variables?

515


What does where 1/2 mean in sql?

540