SlideShare a Scribd company logo
1 of 19
KAASHIV INFOTECH
The Asia, India, Tamil Nadu Book Of Record
Holders
SQL SERVER –Booklet 5
- Gives you the interview tips in SQL Server
SQL SERVER Interview Questions-2014
KAASHIV INFOTECH
Welcomes you to the Expert Voice Corner
Mr.J.Venkatesan Prabu
Venkatesan Prabu Jayakantham (venkat) has more than 8 years experience in the Microsoft
Technologies such as VB.Net, ASP.Net, C#.net, SSIS, SSAS, ADO.Net, etc., He is the Managing
Director of KAASHIVINFOTECH (http://www.kaashivinfotech.com/),a software company in
Chennai. Before that, he worked in HCL Technologies (India and Australia) for six years as
Project Lead. As a service motive, Venkat contributed more than 700 articles which is read by
the developers in 170 countries (400 developers per day)
(http://venkattechnicalblog.blogspot.com/). Aligned with KaaShiv InfoTech’s mission,he met
more than 20,000 young minds and spreaded Microsoft Technologies / Career guidance
programs. Venkat won many awards in his career, which includes Prestigious Microsoft MVP
(Most Valuable Professional) award for the years 2008,2009,2010,2011,2012,2013 and won
many awards. List of other awards in his career,
Microsoft certified Smart .Net Candidate in 2004
Most valuable member for dotnetspider site in 2007
HCL SQL Subject Matter expert (SME - SQL Server) for the year (2008,2009)
HCL Special contribution award winner on Dotnet skills for year(2008) HCL SQL
Knowledge Champion for the year 2009
Mind Cracker MVP on SQLServer –2010 for the year 2010,2011
INETA champion - Gold Member – 2010 for the year 2010 HCL Service Contribution
Award for the year 2010
Leading Lights "Rising Star" award from Common Wealth Bank, Australia for the year
2010
TECHNICAL CERTIFICATION
Cisco certified Network Associate (CCNA) – 2004
 Microsoft Certified Application Developer (MCAD) – 2005
ACKNOWLEDGEMENT
I would like to thank my family members for their support and encouragement. Without
their support it would be impossible for me to publish this e-book. I would also like to
thank my KaaShiv InfoTech team for their support to publish this e-book.
DISCLAIMER
All rights reserved. No part of this book may be copied, adapted, abridged or stored in
any retrieval system, computer system, photographic or other system or transmitted in any
form or by any means without the prior written permission of the copyright holders. Any
breach will entail legal action and permission without further notice.
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 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.
3. What is SQL Profiler?
SQL Profiler is a graphical tool that allows system administrators to monitor events in
an instance of Microsoft SQL Server. You can capture and save data about each event to
a file or SQL Server table to analyze later. For example, you can monitor a production
environment to see which stored procedures are hampering performances by executing
too slowly.
Use SQL Profiler to monitor only the events in which you are interested. If traces are
becoming too large, you can filter them based on the information you want, so that only
a subset of the event data is collected. Monitoring too many events adds overhead to the
server and the monitoring process and can cause the trace file or trace table to grow very
large, especially when the monitoring process takes place over a long period of time.
4. What are the authentication modes in SQL Server? How can it be changed?
Windows mode and Mixed Mode - SQL and Windows. To change authentication mode in
SQL Server click Start, Programs, Microsoft SQL Server and click SQL Enterprise
Manager to run SQL Enterprise Manager from the Microsoft SQL Server program group.
Select the server then from the Tools menu select SQL Server Configuration Properties, and
choose the Security page.
5. What is normalization ?
Normalization is a design technique that is widely used as a guide in designing relational
databases. Normalization is essentially a two step process that puts data into tabular form
by removing repeating groups and then removes duplicated data from the relational tables
(Additional reading recommended).
6. What is meant by First Normal Form
A database is said to be in First Normal Form when all entities have a unique identifier or
key, and when every column in every table contains only a single value and doesn't contain a
repeating group or composite field.
7. What is meant by Second Normal Form
A database is in Second Normal Form when it is in First Normal Form plus every non-
primary key column in the table must depend on the entire primary key, not just part of it,
assuming that the primary key is made up of composite columns.
8 .What is meant by Third Normal Form
A database is in Third Normal Form when it is in Second Normal Form and each column
that isn't part of the primary key doesn't depend on another column that isn't part of the
primary key
9. When to denormalize ?
Typically, transactional databases are highly normalized. This means that redundant data is
eliminated and replaced with keys in a one-to-many relationship. Data that is highly
normalized is constrained by the primary key/foreign key relationship, and thus has a high
degree of data integrity. Denormalized data, on the other hand, creates redundancies; this
means that it's possible for denormalized data to lose track of some of the relationships
between atomic data items. However, since all the data for a query is (usually) stored in a
single row in the table, it is much faster to retrieve.
10. How can you performance tune your database ?
Denormalize your tables where appropriate.
Proper use of index columns: An index based on numeric fields is more efficient than an
index based on character columns.
Reduce the number of columns that make up a composite key.
Proper partitioning of tablespaces and create a special tablespace for special data types
like CLOB, BLOB etc.
Data access performance can be tuned by using stored procedures to crunch data in the
database server to reduce the network overhead and also caching data within your
application to reduce the number of accesses.
11. How will you map objects to a relational database ? How will you map class
inheritance to relational data model ?
Due to impedance mismatch between object and relational technology you need to
understand the process of mapping classes (objects) and their relationships to tables and
relationships between them in a database. Classes represent both behavior and data whereas
relational database tables just implement data. Database schemas have keys (primary keys to
uniquely identify rows and foreign keys to maintain relationships between rows) whereas
object schema does not have keys and instead use references to implement relationships to
other objects.
12. What is a view ? Why will you use a view? What is an aggregate function ?
View is a precompiled SQL query, which is used to select data from one or more tables. A
view is like a table but it doesn’t physically take any space (i.e. not materialized).
Views are used for
Providing inherent security by exposing only the data that is needed to be shown to the end
user.
Enabling re-use of SQL statements.
Allows changes to the underlying tables to be hidden from clients, aiding maintenance of
the database schema (i.e. encapsulation)
Views with multiple joins and filters can dramatically degrade performance because views
contain no data and any retrieval needs to be processed.
The solution for this is to use materialized views or create de-normalized tables to store
data. This technique is quite handy in overnight batch processes where a large chunk of
data needs to be processed. Normalized data can be read and inserted into some temporary
denormalized table and processed with efficiency.
13. What is a database trigger ?
A trigger is a fragment of code that you tell to run before or after a table is modified. There
are typically three triggering EVENTS that cause trigger to 'fire':
INSERT event (as a new record is being inserted into the database).
UPDATE event (as a record is being changed).
DELETE event (as a record is being deleted).
Triggers can restrict access to specific data, perform logging, or audit access to data.
INTERNSHIP IN KAASHIV INFOTECH
-Best internship provider in Chennai
Web Application Designing
Project Documentation
Live Inhouse
Application Development
Windows ADO.NET Application
Template Designing-Live Template Designing, CSS
14. How can you keep track of all your database changes ?
If you want to keep track of all changes to a particular record, such as who
modified the record, what kind of modification took place, and when the record
modification occurred then you can use triggers because you can capture every
action that occurred on a particular table. For example, an INSERT trigger would
fire when a particular database table has a record inserted.
15. What is the difference between “Stored Procedure” and “Function”?
A procedure can have both input and output parameters, but a function can only
have input parameters.
Inside a procedure we can use DML (INSERT/UPDATE/DELETE) statements. But
inside a function we can't use DML statements.
KaaShiv InfoTech Offers Best Inpant Training in Chennai.
The training at KAASHIV INFOTECH focus on developing the
technical oriented concepts that turn graduates into employable assets. Handled only by
professionals from MNC companies, we know how to equip you with strong technologies
fundamentals.
INPLANT TRAINING SCHEDULE FOR CSE/IT/MCA STUDENTS
Day Programme
Day 1 BigData (Practical Demos)
Day 2
Windows 8 App Development
(Practical Demos)
Day 3
Ethical Hacking (Facebook
Hack,Server/Website Hacking(20
Attacks)
Day 4
Cloud Computing (Live Server
Demo,Live Pjt Implementation)
Day 5
CCNA (-Networking-Router
Configurations Practical Demo)
INPLANT TRAINING SCHEDULE FOR ELECTRONIC/ELECTRICAL/EIE
STUDENTS:
Day Programme
Day 1 Embedded System (Embedded Program Designing ,Chip Burning)
Day 2
Wireless System (Device Designing,Controlling Fans with Wireless
Sensors)
Day 3 CCNA (-Networking-Router Configurations Practical Demo)
Day 4 Ethical Hacking (Facebook Hack,Server/Website Hacking(20 Attacks)
Day 5
Matlab (Capture Image,Processing, Animate Images-Practical
Demos)
MECHANICAL/CIVIL INPLANT TRAINING SCHEDULE:
Day Programme
Day 1 Aircraft Designing
Day 2 Vehicle Movement in
Airports
Day 3 3D Packaging Designs
Day 4 3D Modeling
Day 5 3D Window Shading
Tags:
inplanttraining in chennai,Best inplanttraining Program in Chennai
Anna Nagar,Best and Effective inplanttraining Program in Chennai at Anna
Nagar ,inplanttraining Program for Engineering Students , inplanttraining Program for
Arts and Science Students , inplanttraining Program for BE Students , inplanttraining
Program for Information Technology Students ,inplanttraining Program in Chennai , Best
and Effective inplanttraining Program in Chennai,Best and good inplanttraining Program
in Chennai,inplanttraining Program for Computer Science Students, inplanttraining
Program for Electronics and Communication Students,inplanttraining Program for
Electrical and Electronics Students , inplanttraining Program for Engineering Studentsin
anna nagar , inplanttraining Program for Arts and Science Students in anna
nagar,Effective inplanttraining Program,Effective and Free inplanttraining Program,best
inplanttraining in chennai near rountana,best inplanttraining for engineering students in
chennai,best inplanttraining in anna nagar,inplanttraining for arts and science students in
tamil nadu,best inplanttraining for arts and science students in anna nagar near
rountana,best inplanttraining for ug graduates,best inplanttraining for pg graduates,best
inplanttraining for b.e/b.tech students,best inplanttraining for ug graduates in
chennai,best inplanttraining for ug graduates in anna nagar,best inplanttraining for ug
graduates in tamil nadu,best inplanttraining for pg graduates in chennai,
best inplanttraining for pg graduates in anna nagar,best inplanttraining for pg graduates in
tamil nadu,inplanttraining for cse students,inplanttraining for it students,inplanttraining for
ece students,inplanttraining for eee students,inplanttraining on android in
chennai,inplanttraining on java in chennai,inplanttraining on embedded systems in
chennai,inplanttraining on matlab in chennai,inplanttraining on .net in
chennai,inplanttraining on android in anna nagar,inplanttraining on java in anna
nagar,inplanttraining on embedded systems in anna nagar,inplanttraining on matlab in anna
nagar,inplanttraining on .net in anna nagar,best summer inplanttraining for arts and science
ug graduates in chennai,best summer inplanttraining for arts and science pg graduates in
chennai,best summer inplanttraining for engineering ug graduates in chennai,best summer
inplanttraining for engineering pg graduates in chennai,best summer inplanttraining for arts
and science ug graduates in anna nagar,best summer inplanttraining for arts and science pg
graduates in anna nagar,best summer inplanttraining for engineering ug graduates in anna
nagar,best summer inplanttraining for engineering pg graduates in anna nagar,best
inplanttraining for mba graduates in chennai,best inplanttraining fo mca graduates in
chennai,best inplanttraining for mba graduates in anna nagar,best inplanttraining for mca
graduates in anna nagar,best summer inplanttraining for mba graduates in chennai,best
summer inplanttraining for mca graduates in chennai,best summer inplanttraining for mba
graduates in anna nagar, best summer inplanttraining for mba graduates near rountana,best
summer inplanttraining for mca graduates near rountana
Address:
KAASHIV INFO TECH
Shivanantha Building,
X41, 5th Floor,2nd Avenue,
(Near Ayyappan Temple)
Anna Nagar, Chennai = 600040.
Send Us Your Request Email To arun@kaashivinfotech.com,
kaashiv.info@gmail.com,
venkat@kaashivinfotech.com
Contact Number : 9840678906 ;; 9003718877 ;; 9962345637 ;
Visit our other websites:
http://inplanttrainingchennai.com/ - Inplant Training Portal
http://inplanttrainingchennai.com/ - Internship Portal
jobsanddumps.com – Job Portal
https://plus.google.com/u/0/108546120202591604585
https://plus.google.com/u/0/b/110228862465265998202/dashboard/overview
https://plus.google.com/u/0/b/117408505876070870512/dashboard/overview
https://plus.google.com/u/0/b/104468163439231303834
/dashboard/overview
https://plus.google.com/u/0/b/117640664472494971423/dashboard/overview
KaaShiv InfoTech Facebook Page
https://www.facebook.com/KaaShivInfoTech
Inplant Training Program in Chennai
https://www.facebook.com/pages/Inplant-Training-Program-in-
Chennai/1402097696706380
Internship in Chennai
https://www.facebook.com/pages/Internship-in-Chennai-
KaaShiv/1446147235603704
Inplant Training
https://www.facebook.com/pages/Inplant-Training/256116284550327

More Related Content

What's hot

Oracle dba interview
Oracle dba interviewOracle dba interview
Oracle dba interviewNaveen P
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentationkaashiv1
 
153680 sqlinterview
153680  sqlinterview153680  sqlinterview
153680 sqlinterviewzdsgsgdf
 
Comprehensive oracle interview qs
Comprehensive oracle interview qsComprehensive oracle interview qs
Comprehensive oracle interview qsvipul_wankar
 
Rdbms Practical file diploma
Rdbms Practical file diploma Rdbms Practical file diploma
Rdbms Practical file diploma mustkeem khan
 
Week 2 Characteristics & Benefits of a Database & Types of Data Models
Week 2 Characteristics & Benefits of a Database & Types of Data ModelsWeek 2 Characteristics & Benefits of a Database & Types of Data Models
Week 2 Characteristics & Benefits of a Database & Types of Data Modelsoudesign
 

What's hot (13)

Ebook12
Ebook12Ebook12
Ebook12
 
Oracle dba interview
Oracle dba interviewOracle dba interview
Oracle dba interview
 
Ado
AdoAdo
Ado
 
Oracle tutorial
Oracle tutorialOracle tutorial
Oracle tutorial
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentation
 
153680 sqlinterview
153680  sqlinterview153680  sqlinterview
153680 sqlinterview
 
Comprehensive oracle interview qs
Comprehensive oracle interview qsComprehensive oracle interview qs
Comprehensive oracle interview qs
 
ODI User and Security
ODI User and Security ODI User and Security
ODI User and Security
 
ado.net
ado.netado.net
ado.net
 
Rdbms Practical file diploma
Rdbms Practical file diploma Rdbms Practical file diploma
Rdbms Practical file diploma
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
Android project (1)
Android project (1)Android project (1)
Android project (1)
 
Week 2 Characteristics & Benefits of a Database & Types of Data Models
Week 2 Characteristics & Benefits of a Database & Types of Data ModelsWeek 2 Characteristics & Benefits of a Database & Types of Data Models
Week 2 Characteristics & Benefits of a Database & Types of Data Models
 

Viewers also liked

Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6kaashiv1
 
Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12kaashiv1
 
Sql interview question part 9
Sql interview question part 9Sql interview question part 9
Sql interview question part 9kaashiv1
 
Sql interview question part 3
Sql interview question part 3Sql interview question part 3
Sql interview question part 3kaashiv1
 
Sql interview-question-part-9
Sql interview-question-part-9Sql interview-question-part-9
Sql interview-question-part-9kaashiv1
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1kaashiv1
 
Sql interview question part 2
Sql interview question part 2Sql interview question part 2
Sql interview question part 2kaashiv1
 
Sql interview question part 7
Sql interview question part 7Sql interview question part 7
Sql interview question part 7kaashiv1
 

Viewers also liked (14)

Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6
 
Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12
 
Sql interview question part 9
Sql interview question part 9Sql interview question part 9
Sql interview question part 9
 
Ebook1
Ebook1Ebook1
Ebook1
 
Ebook6
Ebook6Ebook6
Ebook6
 
Ebook11
Ebook11Ebook11
Ebook11
 
Sql interview question part 3
Sql interview question part 3Sql interview question part 3
Sql interview question part 3
 
Ebook9
Ebook9Ebook9
Ebook9
 
Sql interview-question-part-9
Sql interview-question-part-9Sql interview-question-part-9
Sql interview-question-part-9
 
Ebook7
Ebook7Ebook7
Ebook7
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1
 
Sql interview question part 2
Sql interview question part 2Sql interview question part 2
Sql interview question part 2
 
Sql interview question part 7
Sql interview question part 7Sql interview question part 7
Sql interview question part 7
 
Ebook9
Ebook9Ebook9
Ebook9
 

Similar to Ebook5

Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12kaashiv1
 
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
 
A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...Editor IJCATR
 
Sql interview question part 10
Sql interview question part 10Sql interview question part 10
Sql interview question part 10kaashiv1
 
Sql interview question part 8
Sql interview question part 8Sql interview question part 8
Sql interview question part 8kaashiv1
 
Sql interview question part 2
Sql interview question part 2Sql interview question part 2
Sql interview question part 2kaashiv1
 
A Survey And Comparison Of Relational And Non-Relational Database
A Survey And Comparison Of Relational And Non-Relational DatabaseA Survey And Comparison Of Relational And Non-Relational Database
A Survey And Comparison Of Relational And Non-Relational DatabaseKarla Adamson
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1kaashiv1
 
Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql serverVinay Thota
 
Sql interview question part 4
Sql interview question part 4Sql interview question part 4
Sql interview question part 4kaashiv1
 
Sql interview question part 4
Sql interview question part 4Sql interview question part 4
Sql interview question part 4kaashiv1
 

Similar to Ebook5 (20)

Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12
 
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
 
A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...
 
Ebook3
Ebook3Ebook3
Ebook3
 
Sql interview question part 10
Sql interview question part 10Sql interview question part 10
Sql interview question part 10
 
Ebook10
Ebook10Ebook10
Ebook10
 
Sql interview question part 8
Sql interview question part 8Sql interview question part 8
Sql interview question part 8
 
Ebook8
Ebook8Ebook8
Ebook8
 
Sql interview question part 2
Sql interview question part 2Sql interview question part 2
Sql interview question part 2
 
Ebook2
Ebook2Ebook2
Ebook2
 
Sql good practices
Sql good practicesSql good practices
Sql good practices
 
A Survey And Comparison Of Relational And Non-Relational Database
A Survey And Comparison Of Relational And Non-Relational DatabaseA Survey And Comparison Of Relational And Non-Relational Database
A Survey And Comparison Of Relational And Non-Relational Database
 
Sql interview question part 1
Sql interview question part 1Sql interview question part 1
Sql interview question part 1
 
Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql server
 
Sql interview question part 4
Sql interview question part 4Sql interview question part 4
Sql interview question part 4
 
Ebook4
Ebook4Ebook4
Ebook4
 
Sql interview question part 4
Sql interview question part 4Sql interview question part 4
Sql interview question part 4
 
Sql
SqlSql
Sql
 

Recently uploaded

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 

Recently uploaded (20)

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 

Ebook5

  • 1. KAASHIV INFOTECH The Asia, India, Tamil Nadu Book Of Record Holders SQL SERVER –Booklet 5 - Gives you the interview tips in SQL Server SQL SERVER Interview Questions-2014
  • 2. KAASHIV INFOTECH Welcomes you to the Expert Voice Corner Mr.J.Venkatesan Prabu Venkatesan Prabu Jayakantham (venkat) has more than 8 years experience in the Microsoft Technologies such as VB.Net, ASP.Net, C#.net, SSIS, SSAS, ADO.Net, etc., He is the Managing Director of KAASHIVINFOTECH (http://www.kaashivinfotech.com/),a software company in Chennai. Before that, he worked in HCL Technologies (India and Australia) for six years as Project Lead. As a service motive, Venkat contributed more than 700 articles which is read by the developers in 170 countries (400 developers per day) (http://venkattechnicalblog.blogspot.com/). Aligned with KaaShiv InfoTech’s mission,he met more than 20,000 young minds and spreaded Microsoft Technologies / Career guidance programs. Venkat won many awards in his career, which includes Prestigious Microsoft MVP (Most Valuable Professional) award for the years 2008,2009,2010,2011,2012,2013 and won many awards. List of other awards in his career,
  • 3. Microsoft certified Smart .Net Candidate in 2004 Most valuable member for dotnetspider site in 2007 HCL SQL Subject Matter expert (SME - SQL Server) for the year (2008,2009) HCL Special contribution award winner on Dotnet skills for year(2008) HCL SQL Knowledge Champion for the year 2009 Mind Cracker MVP on SQLServer –2010 for the year 2010,2011 INETA champion - Gold Member – 2010 for the year 2010 HCL Service Contribution Award for the year 2010 Leading Lights "Rising Star" award from Common Wealth Bank, Australia for the year 2010 TECHNICAL CERTIFICATION Cisco certified Network Associate (CCNA) – 2004  Microsoft Certified Application Developer (MCAD) – 2005
  • 4. ACKNOWLEDGEMENT I would like to thank my family members for their support and encouragement. Without their support it would be impossible for me to publish this e-book. I would also like to thank my KaaShiv InfoTech team for their support to publish this e-book. DISCLAIMER All rights reserved. No part of this book may be copied, adapted, abridged or stored in any retrieval system, computer system, photographic or other system or transmitted in any form or by any means without the prior written permission of the copyright holders. Any breach will entail legal action and permission without further notice.
  • 5. 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 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. 3. What is SQL Profiler? SQL Profiler is a graphical tool that allows system administrators to monitor events in an instance of Microsoft SQL Server. You can capture and save data about each event to a file or SQL Server table to analyze later. For example, you can monitor a production environment to see which stored procedures are hampering performances by executing too slowly. Use SQL Profiler to monitor only the events in which you are interested. If traces are becoming too large, you can filter them based on the information you want, so that only a subset of the event data is collected. Monitoring too many events adds overhead to the server and the monitoring process and can cause the trace file or trace table to grow very large, especially when the monitoring process takes place over a long period of time.
  • 6. 4. What are the authentication modes in SQL Server? How can it be changed? Windows mode and Mixed Mode - SQL and Windows. To change authentication mode in SQL Server click Start, Programs, Microsoft SQL Server and click SQL Enterprise Manager to run SQL Enterprise Manager from the Microsoft SQL Server program group. Select the server then from the Tools menu select SQL Server Configuration Properties, and choose the Security page. 5. What is normalization ? Normalization is a design technique that is widely used as a guide in designing relational databases. Normalization is essentially a two step process that puts data into tabular form by removing repeating groups and then removes duplicated data from the relational tables (Additional reading recommended).
  • 7. 6. What is meant by First Normal Form A database is said to be in First Normal Form when all entities have a unique identifier or key, and when every column in every table contains only a single value and doesn't contain a repeating group or composite field. 7. What is meant by Second Normal Form A database is in Second Normal Form when it is in First Normal Form plus every non- primary key column in the table must depend on the entire primary key, not just part of it, assuming that the primary key is made up of composite columns. 8 .What is meant by Third Normal Form A database is in Third Normal Form when it is in Second Normal Form and each column that isn't part of the primary key doesn't depend on another column that isn't part of the primary key 9. When to denormalize ? Typically, transactional databases are highly normalized. This means that redundant data is eliminated and replaced with keys in a one-to-many relationship. Data that is highly normalized is constrained by the primary key/foreign key relationship, and thus has a high degree of data integrity. Denormalized data, on the other hand, creates redundancies; this means that it's possible for denormalized data to lose track of some of the relationships between atomic data items. However, since all the data for a query is (usually) stored in a single row in the table, it is much faster to retrieve.
  • 8. 10. How can you performance tune your database ? Denormalize your tables where appropriate. Proper use of index columns: An index based on numeric fields is more efficient than an index based on character columns. Reduce the number of columns that make up a composite key. Proper partitioning of tablespaces and create a special tablespace for special data types like CLOB, BLOB etc. Data access performance can be tuned by using stored procedures to crunch data in the database server to reduce the network overhead and also caching data within your application to reduce the number of accesses.
  • 9. 11. How will you map objects to a relational database ? How will you map class inheritance to relational data model ? Due to impedance mismatch between object and relational technology you need to understand the process of mapping classes (objects) and their relationships to tables and relationships between them in a database. Classes represent both behavior and data whereas relational database tables just implement data. Database schemas have keys (primary keys to uniquely identify rows and foreign keys to maintain relationships between rows) whereas object schema does not have keys and instead use references to implement relationships to other objects.
  • 10. 12. What is a view ? Why will you use a view? What is an aggregate function ? View is a precompiled SQL query, which is used to select data from one or more tables. A view is like a table but it doesn’t physically take any space (i.e. not materialized). Views are used for Providing inherent security by exposing only the data that is needed to be shown to the end user. Enabling re-use of SQL statements. Allows changes to the underlying tables to be hidden from clients, aiding maintenance of the database schema (i.e. encapsulation) Views with multiple joins and filters can dramatically degrade performance because views contain no data and any retrieval needs to be processed. The solution for this is to use materialized views or create de-normalized tables to store data. This technique is quite handy in overnight batch processes where a large chunk of data needs to be processed. Normalized data can be read and inserted into some temporary denormalized table and processed with efficiency. 13. What is a database trigger ? A trigger is a fragment of code that you tell to run before or after a table is modified. There are typically three triggering EVENTS that cause trigger to 'fire': INSERT event (as a new record is being inserted into the database). UPDATE event (as a record is being changed). DELETE event (as a record is being deleted). Triggers can restrict access to specific data, perform logging, or audit access to data.
  • 11. INTERNSHIP IN KAASHIV INFOTECH -Best internship provider in Chennai Web Application Designing Project Documentation Live Inhouse Application Development Windows ADO.NET Application Template Designing-Live Template Designing, CSS 14. How can you keep track of all your database changes ? If you want to keep track of all changes to a particular record, such as who modified the record, what kind of modification took place, and when the record modification occurred then you can use triggers because you can capture every action that occurred on a particular table. For example, an INSERT trigger would fire when a particular database table has a record inserted. 15. What is the difference between “Stored Procedure” and “Function”? A procedure can have both input and output parameters, but a function can only have input parameters. Inside a procedure we can use DML (INSERT/UPDATE/DELETE) statements. But inside a function we can't use DML statements.
  • 12. KaaShiv InfoTech Offers Best Inpant Training in Chennai. The training at KAASHIV INFOTECH focus on developing the technical oriented concepts that turn graduates into employable assets. Handled only by professionals from MNC companies, we know how to equip you with strong technologies fundamentals. INPLANT TRAINING SCHEDULE FOR CSE/IT/MCA STUDENTS Day Programme Day 1 BigData (Practical Demos) Day 2 Windows 8 App Development (Practical Demos) Day 3 Ethical Hacking (Facebook Hack,Server/Website Hacking(20 Attacks) Day 4 Cloud Computing (Live Server Demo,Live Pjt Implementation) Day 5 CCNA (-Networking-Router Configurations Practical Demo)
  • 13. INPLANT TRAINING SCHEDULE FOR ELECTRONIC/ELECTRICAL/EIE STUDENTS: Day Programme Day 1 Embedded System (Embedded Program Designing ,Chip Burning) Day 2 Wireless System (Device Designing,Controlling Fans with Wireless Sensors) Day 3 CCNA (-Networking-Router Configurations Practical Demo) Day 4 Ethical Hacking (Facebook Hack,Server/Website Hacking(20 Attacks) Day 5 Matlab (Capture Image,Processing, Animate Images-Practical Demos)
  • 14. MECHANICAL/CIVIL INPLANT TRAINING SCHEDULE: Day Programme Day 1 Aircraft Designing Day 2 Vehicle Movement in Airports Day 3 3D Packaging Designs Day 4 3D Modeling Day 5 3D Window Shading
  • 15. Tags: inplanttraining in chennai,Best inplanttraining Program in Chennai Anna Nagar,Best and Effective inplanttraining Program in Chennai at Anna Nagar ,inplanttraining Program for Engineering Students , inplanttraining Program for Arts and Science Students , inplanttraining Program for BE Students , inplanttraining Program for Information Technology Students ,inplanttraining Program in Chennai , Best and Effective inplanttraining Program in Chennai,Best and good inplanttraining Program in Chennai,inplanttraining Program for Computer Science Students, inplanttraining Program for Electronics and Communication Students,inplanttraining Program for Electrical and Electronics Students , inplanttraining Program for Engineering Studentsin anna nagar , inplanttraining Program for Arts and Science Students in anna nagar,Effective inplanttraining Program,Effective and Free inplanttraining Program,best inplanttraining in chennai near rountana,best inplanttraining for engineering students in chennai,best inplanttraining in anna nagar,inplanttraining for arts and science students in tamil nadu,best inplanttraining for arts and science students in anna nagar near rountana,best inplanttraining for ug graduates,best inplanttraining for pg graduates,best inplanttraining for b.e/b.tech students,best inplanttraining for ug graduates in chennai,best inplanttraining for ug graduates in anna nagar,best inplanttraining for ug graduates in tamil nadu,best inplanttraining for pg graduates in chennai,
  • 16. best inplanttraining for pg graduates in anna nagar,best inplanttraining for pg graduates in tamil nadu,inplanttraining for cse students,inplanttraining for it students,inplanttraining for ece students,inplanttraining for eee students,inplanttraining on android in chennai,inplanttraining on java in chennai,inplanttraining on embedded systems in chennai,inplanttraining on matlab in chennai,inplanttraining on .net in chennai,inplanttraining on android in anna nagar,inplanttraining on java in anna nagar,inplanttraining on embedded systems in anna nagar,inplanttraining on matlab in anna nagar,inplanttraining on .net in anna nagar,best summer inplanttraining for arts and science ug graduates in chennai,best summer inplanttraining for arts and science pg graduates in chennai,best summer inplanttraining for engineering ug graduates in chennai,best summer inplanttraining for engineering pg graduates in chennai,best summer inplanttraining for arts and science ug graduates in anna nagar,best summer inplanttraining for arts and science pg graduates in anna nagar,best summer inplanttraining for engineering ug graduates in anna nagar,best summer inplanttraining for engineering pg graduates in anna nagar,best inplanttraining for mba graduates in chennai,best inplanttraining fo mca graduates in chennai,best inplanttraining for mba graduates in anna nagar,best inplanttraining for mca graduates in anna nagar,best summer inplanttraining for mba graduates in chennai,best summer inplanttraining for mca graduates in chennai,best summer inplanttraining for mba graduates in anna nagar, best summer inplanttraining for mba graduates near rountana,best summer inplanttraining for mca graduates near rountana
  • 17. Address: KAASHIV INFO TECH Shivanantha Building, X41, 5th Floor,2nd Avenue, (Near Ayyappan Temple) Anna Nagar, Chennai = 600040. Send Us Your Request Email To arun@kaashivinfotech.com, kaashiv.info@gmail.com, venkat@kaashivinfotech.com Contact Number : 9840678906 ;; 9003718877 ;; 9962345637 ; Visit our other websites: http://inplanttrainingchennai.com/ - Inplant Training Portal http://inplanttrainingchennai.com/ - Internship Portal jobsanddumps.com – Job Portal https://plus.google.com/u/0/108546120202591604585 https://plus.google.com/u/0/b/110228862465265998202/dashboard/overview https://plus.google.com/u/0/b/117408505876070870512/dashboard/overview
  • 18. https://plus.google.com/u/0/b/104468163439231303834 /dashboard/overview https://plus.google.com/u/0/b/117640664472494971423/dashboard/overview KaaShiv InfoTech Facebook Page https://www.facebook.com/KaaShivInfoTech Inplant Training Program in Chennai https://www.facebook.com/pages/Inplant-Training-Program-in- Chennai/1402097696706380 Internship in Chennai https://www.facebook.com/pages/Internship-in-Chennai- KaaShiv/1446147235603704