ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
what is differece between union and union all
 Question Submitted By :: Nidhinac
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is differece between union and union all
Answer
# 1
Union:
combine two tables and common values to be retrieved no 
duplicate values

Union All:

All the values to be retrieved when combine two table.
(duplicate values)
 
Is This Answer Correct ?    2 Yes 0 No
Samy
 
  Re: what is differece between union and union all
Answer
# 2
Union: It will combine the output of two or more queries &
it will eliminate duplicate  values. 

Union all:It will combine the output of two or more queries
& it will not eliminate duplicate  values.
 
Is This Answer Correct ?    0 Yes 0 No
Shyam
 
 
 
  Re: what is differece between union and union all
Answer
# 3
Union:Only Select Distinct Value
Union All:Select All Values Using Duplicate
All Selected Columns Must Have Same DataType
Example: 
Table 1 : First,Second,Third,Fourth,Fifth
Table 2 : First,Second,Fifth,Sixth
 
Is This Answer Correct ?    0 Yes 0 No
Dinesh Sharma
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
create index a on employee(dno) In this,which index was created?  1
What is blocking and how would you troubleshoot it?  1
how insert selected column only ? Robert-Half1
What is the difference between two queries: 1. SELECT * FROM table WHERE 1=1; 2. SELECT * FROM table HP12
Which institute is best for SQL Server 2005 Training?  3
Lets say due to N/W or Security issues client is not able to connect to server or vice versa. How do you troubleshoot?  1
what are the new features of sql server 2005? HP5
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE? Yardi-Software2
how can i store resumes in database? HCL1
What is the difference between views and stored procedures? Can we have input parameters for views?  3
I have a huge amount of data which is displayed in a report. The data is viewed every day. Every day the data is displayed in 30 secs but suddenly today it is giving an timeout message today. Data has not been changed. The situation is same as yesterday. What might be the reason??? Please Answer. Satyam3
What are the four main query statements?  2
What is the diff between Dynamic queries and static queries ICS-Integrated-Computer-Solutions1
How to Display, Amount of Disk Activity Generated by Transact-SQL Statements?  1
could you please reply for these question: 1.About Use Apply? 2.Avoid cursors - When we have a situation that we can not avoid the use of cursor than what is the alternate solution? is there anything we can use instead of cursor to perform the desired task? which optiomize the peroformance too. 3.What is computed columns? Thanks in advance. Regards, Rupesh  3
Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table? eFunds4
How will u get 5 years back record?  3
What is a sub-query? When would you use one?  2
Say if we have a table that contains only a single column , say OrderID, which has IDENTITY attribute defined on it. So how can we insert data in this table. I am reframing my question, that how can we make the table to increment the column "OrderID" value several times???  3
1. What are the grouping function in SQL ? 2. If base table of a view deleted means, what will happen while we querying on view ? will give any error ? 3. Difference between DROP, DELETE, TRUNCATE table ? 4. What is constraints and types ? 5. What is max size of nchar & nvarchar ? 6. Define ROLLBACK, COMMIT, SAVE POINT 7. How non-clustered better ? or rank the Clustered, Non-Clustered and Table scan in performance wise 8. Select 10 rows from a table ? 9. Define DML, DDL, DCL, DTL commands ? 10. What is mean by NULL value ? NULL means "" or 0 or undefined ? 11. Default constraints ? 12. Can we have more then primary Key in table ? 13. Type of integrity ? Entity, Referential, Domain ? Perot-Systems7
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com