What is the difference between UNION and UNIONALL?

Answer Posted / valarmathi

union is used to retreive the data with out duplication
union all is used to retreive the data with duplication

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to query multiple tables jointly?

636


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

596


How many database files are there in sql server 2000?what are they?

654


Do you know data definition language, data control language and data manipulation language?

704


Tell me what is the significance of null value and why should we avoid permitting null values?

618






How connect excel to sql server?

589


What do you understand by recursive stored procedures?

656


How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

693


What is msdb database? : SQL Server Architecture

623


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

631


what is a join? : Sql server database administration

638


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

1658


How does a profiler work?

608


What is a not null constraint?

676


What is table value parameters (tvp)?

669