.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!




Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.


Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/PracticesIISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

Sql Server Interview Questions and Answers

Which types of joins let you retrieve nonmatching data?

Author: Narayanan          Posted Date: April 12, 2013    Category: Sql Server     Points: 40

Full outer join and Left outer join

which is Faster Union or Union All?

Author: Narayanan          Posted Date: April 12, 2013    Category: Sql Server     Points: 40

Union All is faster than union in SQL Server

What is the symbol for creating temporary Table in SQL Server.

Author: Narayanan          Posted Date: April 12, 2013    Category: Sql Server     Points: 40

#

Why use Stored Procedures ?

Author: Narayanan          Posted Date: April 12, 2013    Category: Sql Server     Points: 40

Stored procedures allow a lot more flexibility offering capabilities such as conditional logic
Stored procedures are stored within the DBMS, bandwidth and execution time are reduced
Client developers are abstracted from complex designs

Difference between Unique Key and Primary Key

Author: abhays          Posted Date: January 15, 2013    Category: Sql Server     Points: 40

1. A UNIQUE constraint is similar to PRIMARY key, but you can have more than one UNIQUE constraint per table.
2. Primary Key does not allow null values whereas unique constraint allows 'single' null value.
3. A table can have only single Primary Key where as it can have multiple unique constraints ( max 16)
4. Primary Key creates clustered index by default whereas Unique Key creates non-clustered index by default

Difference between:UNION and INTERSET?

Author: Narayanan          Posted Date: August 13, 2012    Category: Sql Server     Points: 40

UNION: OR operator (value is selected if it appears in either the first or the second statement)
INTERSET:AND operator (value is selected only if it appears in both statements).

Difference between UNION and UNION in SQL ?

Author: Narayanan          Posted Date: August 13, 2012    Category: Sql Server     Points: 40

UNION : Doesn't return Duplicate Values.
UNION ALL: return All values (includes Duplicate Values)

Difference between Top and LIMIT?

Author: Narayanan          Posted Date: August 13, 2012    Category: Sql Server     Points: 40

Top: Retrieve Top records from the Table,
LIMIT: Retrieve LIMIT records from the Table.

what is mean by constraint?

Author: Narayanan          Posted Date: August 09, 2012    Category: Sql Server     Points: 40

constraint:
protect columns of the table from unwanted values.
NOT NULL, CHECK, UNIQUE, PRIMARY KEY, FOREIGN KEY are the types of contraints define in SQL Server.

Difference between Primary and Unique key.

Author: Narayanan          Posted Date: August 09, 2012    Category: Sql Server     Points: 40

Primary Key:
A column defined as primary key doesn’t allow null value.
By default, clustered index in created with the column having primary key.
Unique Key:
A column with unique key defined allows null value.
By default, it creates non-clustered index.
« Previous12345678910….6970Next »



Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend