what is the difference between union and union all

Answer Posted / ranjay kumar singh

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 ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is truncate ddl or dml?

764


What is rank () in sql?

710


How to check if a column is nullable before setting to nullable?

791


What sql does db2 use?

737


Explain exception handling in pl/sql?

753


What are secondary keys?

747


what is a materialized view? : Sql dba

764


What is the difference between row level and statement level trigger?

735


When is the update_statistics command used?

783


Why use triggers in sql?

718


What is sql basics?

790


What is the basic form of sql query?

685


how does a local variable is defined using t-sql? : Transact sql

744


Where is all the data on the internet stored?

748


What is the current version of postgresql?

749