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

How you improve the performance of sql*loader? : aql loader

574


What are the commands used in sql?

522


I need a function for a train ticket reservation please answer it thanks in advance

561


What does select * from mean in sql?

1984


Is primary key an index?

531






What are keys in sql?

544


Why stored procedure is faster than query?

515


What is foreign key in sql with example?

511


What are character functions?

628


is it possible to pass an object or table to a procedure as an argument?

567


What are the two characteristics of a primary key?

485


How to select all records from the table?

605


What is difference between rank () row_number () and dense_rank () in sql?

575


What is trigger and stored procedure in sql?

554


What is the difference between mdf and ndf files?

562