what is the difference between union and union all

Answer Posted / suresh

union is used to select distinct values from two tables
where as union all is used to select all values including
duplicates from the tables

Is This Answer Correct ?    175 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some predefined exceptions in pl/sql?

746


What do you mean by “trigger” in sql?

801


Define commit, rollback and savepoint?

767


What is an exception in pl/sql?

729


What is sql query limit?

699






Does sql support programming?

771


what are enums used for in mysql? : Sql dba

816


What is sql select statement?

703


What is record variable?

712


What is difference between mysql and postgresql?

707


Why having clause is used in sql?

726


Is coalesce faster than isnull?

705


What is a relationship and what are they?

788


How does left join work in sql?

701


How will you distinguish a global variable with a local variable in pl/sql?

846