SlideShare a Scribd company logo
1 of 2
Download to read offline
SQL Server - Common Interview Questions and Answers




                                                                                                                                                             Search




       Aptitude ?      Reasoning ?       Verbal Ability       GK      Puzzles     Programming ?   Engineering   Medical ?   Interview   Online Test

                                                                                                                                             Ads by Google
        SQL Server - Common Interview Questions and Answers
                                                                                                                                             SQL Server
       @ : Home > Technical Interview > SQL Server Common Questions > Interview Questions
                                                                                                                                             Learn SQL Server
        Good Interview Questions Looking for a Career Change? Find Options & Opportunities for Free. www.BetterCareerSearch.com
                                                                                                                                             SQL Server Manager
        SQL Server Training Access Videos, Articles and More. Join the SSWUG.ORG Community Today! www.sswug.org

        Adaption Business Softw. Makes complex logistics simple Probeer nu onze software! www.adaption-it.nl

        Visual SQL to XML Easy to use Data Mapping environment. Try now! www.ecrion.com




        1. Which TCP/IP port does SQL Server run on? How can it be changed?


              SQL Server runs on port 1433. It can be changed from the Network Utility TCP/IP properties.



        2. What are the difference between clustered and a non-clustered index?


                 1.   A clustered index is a special type of index that reorders the way records in the table are physically
                      stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the
                      data pages.

                 2.   A non clustered index is a special type of index in which the logical order of the index does not match
                      the physical stored order of the rows on disk. The leaf node of a non clustered index does not consist of the
                      data pages. Instead, the leaf nodes contain index rows.



        3. What are the different index configurations a table can have?


              A table can have one of the following index configurations:

                 1.   No indexes

                 2.   A clustered index

                 3.   A clustered index and many nonclustered indexes

                 4.   A nonclustered index

                 5.   Many nonclustered indexes



        4. What are different types of Collation Sensitivity?


                 1.   Case sensitivity - A and a, B and b, etc.

                 2.   Accent sensitivity

                 3.   Kana Sensitivity - When Japanese kana characters Hiragana and Katakana are treated differently, it is
                      called Kana sensitive.

                 4.   Width sensitivity - A single-byte character (half-width) and the same character represented as a double-
                      byte character (full-width) are treated differently than it is width sensitive.



        5. What is OLTP (Online Transaction Processing)?


              In OLTP - online transaction processing systems relational database design use the discipline of data modeling and
              generally follow the Codd rules of data normalization in order to ensure absolute data integrity. Using these rules
              complex information is broken down into its most simple structures (a table) where all of the individual atomic level
              elements relate to each other and satisfy the normalization rules.



        6. What's the difference between a primary key and a unique key?



http://www.indiabix.com/technical/sql-server-common-questions/[08/29/2012 4:10:02 PM]
SQL Server - Common Interview Questions and Answers



              Both primary key and unique key enforces uniqueness of the column on which they are defined. But by default
              primary key creates a clustered index on the column, where are unique creates a nonclustered index by default.
              Another major difference is that, primary key doesn't allow NULLs, but unique key allows one NULL only.


         1    2   3    4   5    6   Next >




                           Consulting Case Prep
                  Interactive interview prep: math drills,
                       frameworks & market-sizing
                         www.casequestions.com




                                       © 2008-2012 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy


                                                              Contact us: info@indiabix.com       Follow us on twitter!


                                                                            Bookmark to:




http://www.indiabix.com/technical/sql-server-common-questions/[08/29/2012 4:10:02 PM]

More Related Content

Similar to Sql server common interview questions and answers

Sql server common interview questions and answers page 4
Sql server   common interview questions and answers page 4Sql server   common interview questions and answers page 4
Sql server common interview questions and answers page 4Kaing Menglieng
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1kaashiv1
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1kaashiv1
 
SQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdfSQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdfNiravPanchal50
 
Sql interview question part 6
Sql interview question part 6Sql interview question part 6
Sql interview question part 6kaashiv1
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6kaashiv1
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6kaashiv1
 
Rapid SQL Datasheet - The Intelligent IDE for SQL Development
Rapid SQL Datasheet - The Intelligent IDE for SQL DevelopmentRapid SQL Datasheet - The Intelligent IDE for SQL Development
Rapid SQL Datasheet - The Intelligent IDE for SQL DevelopmentEmbarcadero Technologies
 
Better sq lqueries
Better sq lqueriesBetter sq lqueries
Better sq lqueriesDave Stokes
 
Intelligent query converter a domain independent interfacefor conversion
Intelligent query converter a domain independent interfacefor conversionIntelligent query converter a domain independent interfacefor conversion
Intelligent query converter a domain independent interfacefor conversionIAEME Publication
 
White Paper for OMG! Identifying and Refactoring Common SQL...
White Paper for OMG! Identifying and Refactoring Common SQL...White Paper for OMG! Identifying and Refactoring Common SQL...
White Paper for OMG! Identifying and Refactoring Common SQL...Jeff Jacobs
 
Databases & Microsoft SQL Server
Databases & Microsoft SQL ServerDatabases & Microsoft SQL Server
Databases & Microsoft SQL ServerMahmoud Abdallah
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentationkaashiv1
 

Similar to Sql server common interview questions and answers (20)

Sql server common interview questions and answers page 4
Sql server   common interview questions and answers page 4Sql server   common interview questions and answers page 4
Sql server common interview questions and answers page 4
 
Ebook1
Ebook1Ebook1
Ebook1
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1
 
SQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdfSQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdf
 
Oracle sql demo
Oracle sql demoOracle sql demo
Oracle sql demo
 
Sql interview question part 6
Sql interview question part 6Sql interview question part 6
Sql interview question part 6
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6
 
Ebook6
Ebook6Ebook6
Ebook6
 
Ebook6
Ebook6Ebook6
Ebook6
 
Rapid SQL Datasheet - The Intelligent IDE for SQL Development
Rapid SQL Datasheet - The Intelligent IDE for SQL DevelopmentRapid SQL Datasheet - The Intelligent IDE for SQL Development
Rapid SQL Datasheet - The Intelligent IDE for SQL Development
 
Better sq lqueries
Better sq lqueriesBetter sq lqueries
Better sq lqueries
 
Ebook11
Ebook11Ebook11
Ebook11
 
Intelligent query converter a domain independent interfacefor conversion
Intelligent query converter a domain independent interfacefor conversionIntelligent query converter a domain independent interfacefor conversion
Intelligent query converter a domain independent interfacefor conversion
 
White Paper for OMG! Identifying and Refactoring Common SQL...
White Paper for OMG! Identifying and Refactoring Common SQL...White Paper for OMG! Identifying and Refactoring Common SQL...
White Paper for OMG! Identifying and Refactoring Common SQL...
 
Databases & Microsoft SQL Server
Databases & Microsoft SQL ServerDatabases & Microsoft SQL Server
Databases & Microsoft SQL Server
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentation
 
JSSUG: SQL Sever Index Tuning
JSSUG: SQL Sever Index TuningJSSUG: SQL Sever Index Tuning
JSSUG: SQL Sever Index Tuning
 
Ebook5
Ebook5Ebook5
Ebook5
 

More from Kaing Menglieng

What is your sql server backup strategy tech_republic
What is your sql server backup strategy    tech_republicWhat is your sql server backup strategy    tech_republic
What is your sql server backup strategy tech_republicKaing Menglieng
 
Using sql server 2008's merge statement tech republic
Using sql server 2008's merge statement   tech republicUsing sql server 2008's merge statement   tech republic
Using sql server 2008's merge statement tech republicKaing Menglieng
 
Using object dependencies in sql server 2008 tech republic
Using object dependencies in sql server 2008   tech republicUsing object dependencies in sql server 2008   tech republic
Using object dependencies in sql server 2008 tech republicKaing Menglieng
 
Using hash fields in sql server tech republic
Using hash fields in sql server   tech republicUsing hash fields in sql server   tech republic
Using hash fields in sql server tech republicKaing Menglieng
 
Using grouping sets in sql server 2008 tech republic
Using grouping sets in sql server 2008   tech republicUsing grouping sets in sql server 2008   tech republic
Using grouping sets in sql server 2008 tech republicKaing Menglieng
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republicKaing Menglieng
 
Sql server indexed views speed up your select queries part 1 - code-projec
Sql server indexed views   speed up your select queries  part 1 - code-projecSql server indexed views   speed up your select queries  part 1 - code-projec
Sql server indexed views speed up your select queries part 1 - code-projecKaing Menglieng
 
Sql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookupSql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookupKaing Menglieng
 
Sql server common interview questions and answers page 6
Sql server   common interview questions and answers page 6Sql server   common interview questions and answers page 6
Sql server common interview questions and answers page 6Kaing Menglieng
 
Sql server common interview questions and answers page 5
Sql server   common interview questions and answers page 5Sql server   common interview questions and answers page 5
Sql server common interview questions and answers page 5Kaing Menglieng
 
Sql server common interview questions and answers page 2
Sql server   common interview questions and answers page 2Sql server   common interview questions and answers page 2
Sql server common interview questions and answers page 2Kaing Menglieng
 
Sql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql seSql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql seKaing Menglieng
 
Speeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joinsSpeeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joinsKaing Menglieng
 
Speed up sql server apps - visual studio magazine
Speed up sql server apps  - visual studio magazineSpeed up sql server apps  - visual studio magazine
Speed up sql server apps - visual studio magazineKaing Menglieng
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republicKaing Menglieng
 
Reviewing sql server permissions tech republic
Reviewing sql server permissions   tech republicReviewing sql server permissions   tech republic
Reviewing sql server permissions tech republicKaing Menglieng
 
Query optimization how to search millions of record in sql table faster -
Query optimization   how to search millions of record in sql table faster  -Query optimization   how to search millions of record in sql table faster  -
Query optimization how to search millions of record in sql table faster -Kaing Menglieng
 
Optimize sql server queries with these advanced tuning techniques tech repu
Optimize sql server queries with these advanced tuning techniques   tech repuOptimize sql server queries with these advanced tuning techniques   tech repu
Optimize sql server queries with these advanced tuning techniques tech repuKaing Menglieng
 
New date datatypes in sql server 2008 tech republic
New date datatypes in sql server 2008   tech republicNew date datatypes in sql server 2008   tech republic
New date datatypes in sql server 2008 tech republicKaing Menglieng
 

More from Kaing Menglieng (20)

What is your sql server backup strategy tech_republic
What is your sql server backup strategy    tech_republicWhat is your sql server backup strategy    tech_republic
What is your sql server backup strategy tech_republic
 
Using sql server 2008's merge statement tech republic
Using sql server 2008's merge statement   tech republicUsing sql server 2008's merge statement   tech republic
Using sql server 2008's merge statement tech republic
 
Using object dependencies in sql server 2008 tech republic
Using object dependencies in sql server 2008   tech republicUsing object dependencies in sql server 2008   tech republic
Using object dependencies in sql server 2008 tech republic
 
Using hash fields in sql server tech republic
Using hash fields in sql server   tech republicUsing hash fields in sql server   tech republic
Using hash fields in sql server tech republic
 
Using grouping sets in sql server 2008 tech republic
Using grouping sets in sql server 2008   tech republicUsing grouping sets in sql server 2008   tech republic
Using grouping sets in sql server 2008 tech republic
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republic
 
Sql server indexed views speed up your select queries part 1 - code-projec
Sql server indexed views   speed up your select queries  part 1 - code-projecSql server indexed views   speed up your select queries  part 1 - code-projec
Sql server indexed views speed up your select queries part 1 - code-projec
 
Sql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookupSql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookup
 
Sql server common interview questions and answers page 6
Sql server   common interview questions and answers page 6Sql server   common interview questions and answers page 6
Sql server common interview questions and answers page 6
 
Sql server common interview questions and answers page 5
Sql server   common interview questions and answers page 5Sql server   common interview questions and answers page 5
Sql server common interview questions and answers page 5
 
Sql server common interview questions and answers page 2
Sql server   common interview questions and answers page 2Sql server   common interview questions and answers page 2
Sql server common interview questions and answers page 2
 
Sql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql seSql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql se
 
Speeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joinsSpeeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joins
 
Speed up sql
Speed up sqlSpeed up sql
Speed up sql
 
Speed up sql server apps - visual studio magazine
Speed up sql server apps  - visual studio magazineSpeed up sql server apps  - visual studio magazine
Speed up sql server apps - visual studio magazine
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republic
 
Reviewing sql server permissions tech republic
Reviewing sql server permissions   tech republicReviewing sql server permissions   tech republic
Reviewing sql server permissions tech republic
 
Query optimization how to search millions of record in sql table faster -
Query optimization   how to search millions of record in sql table faster  -Query optimization   how to search millions of record in sql table faster  -
Query optimization how to search millions of record in sql table faster -
 
Optimize sql server queries with these advanced tuning techniques tech repu
Optimize sql server queries with these advanced tuning techniques   tech repuOptimize sql server queries with these advanced tuning techniques   tech repu
Optimize sql server queries with these advanced tuning techniques tech repu
 
New date datatypes in sql server 2008 tech republic
New date datatypes in sql server 2008   tech republicNew date datatypes in sql server 2008   tech republic
New date datatypes in sql server 2008 tech republic
 

Sql server common interview questions and answers

  • 1. SQL Server - Common Interview Questions and Answers Search Aptitude ? Reasoning ? Verbal Ability GK Puzzles Programming ? Engineering Medical ? Interview Online Test Ads by Google SQL Server - Common Interview Questions and Answers SQL Server @ : Home > Technical Interview > SQL Server Common Questions > Interview Questions Learn SQL Server Good Interview Questions Looking for a Career Change? Find Options & Opportunities for Free. www.BetterCareerSearch.com SQL Server Manager SQL Server Training Access Videos, Articles and More. Join the SSWUG.ORG Community Today! www.sswug.org Adaption Business Softw. Makes complex logistics simple Probeer nu onze software! www.adaption-it.nl Visual SQL to XML Easy to use Data Mapping environment. Try now! www.ecrion.com 1. Which TCP/IP port does SQL Server run on? How can it be changed? SQL Server runs on port 1433. It can be changed from the Network Utility TCP/IP properties. 2. What are the difference between clustered and a non-clustered index? 1. A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages. 2. A non clustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a non clustered index does not consist of the data pages. Instead, the leaf nodes contain index rows. 3. What are the different index configurations a table can have? A table can have one of the following index configurations: 1. No indexes 2. A clustered index 3. A clustered index and many nonclustered indexes 4. A nonclustered index 5. Many nonclustered indexes 4. What are different types of Collation Sensitivity? 1. Case sensitivity - A and a, B and b, etc. 2. Accent sensitivity 3. Kana Sensitivity - When Japanese kana characters Hiragana and Katakana are treated differently, it is called Kana sensitive. 4. Width sensitivity - A single-byte character (half-width) and the same character represented as a double- byte character (full-width) are treated differently than it is width sensitive. 5. What is OLTP (Online Transaction Processing)? In OLTP - online transaction processing systems relational database design use the discipline of data modeling and generally follow the Codd rules of data normalization in order to ensure absolute data integrity. Using these rules complex information is broken down into its most simple structures (a table) where all of the individual atomic level elements relate to each other and satisfy the normalization rules. 6. What's the difference between a primary key and a unique key? http://www.indiabix.com/technical/sql-server-common-questions/[08/29/2012 4:10:02 PM]
  • 2. SQL Server - Common Interview Questions and Answers Both primary key and unique key enforces uniqueness of the column on which they are defined. But by default primary key creates a clustered index on the column, where are unique creates a nonclustered index by default. Another major difference is that, primary key doesn't allow NULLs, but unique key allows one NULL only. 1 2 3 4 5 6 Next > Consulting Case Prep Interactive interview prep: math drills, frameworks & market-sizing www.casequestions.com © 2008-2012 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy Contact us: info@indiabix.com Follow us on twitter! Bookmark to: http://www.indiabix.com/technical/sql-server-common-questions/[08/29/2012 4:10:02 PM]