KAASHIV INFOTECH
The Asia, India, Tamil Nadu Book Of Record
Holders
SQL SERVER –Booklet 3
- 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. What is UNIQUE KEY constraint?
A UNIQUE constraint enforces the uniqueness of the values in a set of columns, so no
duplicate values are entered. The unique key constraints are used to enforce entity
integrity as the primary key constraints.
2. What is FOREIGN KEY?
A FOREIGN KEY constraint prevents any actions that would destroy links between
tables with the corresponding data values. A foreign key in one table points to a primary
key in another table. Foreign keys prevent actions that would leave rows with foreign
key values when there are no primary keys with that value. The foreign key constraints
are used to enforce referential integrity.
3. What is CHECK Constraint?
A CHECK constraint is used to limit the values that can be placed in a column. The
check constraints are used to enforce domain integrity.
4. When is the UPDATE_STATISTICS command used?
- When the processing of large data is done, this command is used.
- Whenever large number of deletions, modification or copy takes place into the tables,
the indexes need to be updated to take care of these changes. UPDATE_STATISTICS
performs this job.
5. Differentiate between a HAVING CLAUSE and a WHERE CLAUSE.
HAVING CLAUSE
- HAVING CLAUSE is used only with the SELECT statement.
- It is generally used in a GROUP BY clause in a query.
- If GROUP BY is not used, HAVING works like a WHERE clause.
WHERE Clause
- It is applied to each row before they become a part of the GROUP BY function in a query.
6. What do you understand by a view? What does the WITH CHECK OPTION clause
for a view do?
- A view is a virtual table that consists of fields from one or more real tables.
- It is usually used to join multiple tables and get the data.
- The WITH CHECK OPTION for a view prevents any modification to the data that does
not confirm to the WHERE clause of the view definition.
- This allows the data belonging to the view to be updated through the view.
7. Explain query execution plan?
- The optimizer available in SQL Server optimizes the code to be effectively executed.
- A query execution plan shows how this optimizer would run the query.
- Query execution plan can be viewed by :
- Using the Show Execution Plan option available in Query Analyzer,
- Displaying Estimated Execution Plan on the query dropdown menu,
- Use the SET SHOWPLAN_TEXT ON command before running a query and capturing
the execution plan event in a SQL Server Profiler trace.
8. What is the function of SQL Server Agent Windows service?
-It is a Windows service which handles the tasks scheduled within the SQL Server
environment. These tasks are also called as job and are stored with in SQL server. The jobs
may run through a trigger, a predefined schedule or on demand.
- This service is very useful in determining why a particular job did not run as intended.
9. Comment on Transactions.
-Using transactions we can group all SQL commands into a single unit.
- The transaction begins with some task and finishes only when all tasks within it are over.
- The transaction gets over successfully only when all commands in it are successfully over.
Even if one command fails, the whole transaction fails.
- The BEGIN TRANSACTION, ROLLBACK TRANSACTION, and COMMIT
TRANSACTION statements are used to work with transactions.
- A group of tasks starts with the begin statement.
- In case of any problem, the rollback command is executed to abort the transaction.
- If all the tasks run successfully, all commands are executed through commit statement.
10. Differentiate between a primary key and a unique key.
- By default, clustered index on the column are created by the primary key whereas
nonclustered index are created by unique key.
- Primary key doesn't allow NULLs, but unique key allows one NULL.
11. What is recursion? Is it possible for a stored procedure to call itself or recursive
stored procedure? How many levels of SP nesting is possible?
Recursion is method of problem solving where the solution is arrived at by repetitively
applying the logic and solution to the subsets of the problem.
Transact-SQL supports recursion. So, yes it is possible for a stored procedure to call
itself.
Stored procedures and managed code references can be nested up to 32 levels.
12. What is the difference between a Local and a Global temporary table?
A local temporary table exists only for the duration of a connection or, if defined inside a
compound statement, for the duration of the compound statement.
A global temporary table remains in the database permanently, but the rows exist only
within a given connection. When connection is closed, the data in the global temporary table
disappears. However, the table definition remains with the database for access when database
is opened next time.
12. What are the advantages of using Stored Procedures?
- They help in reducing the network traffic and latency which in turn boosts application
performance.
- They help in promoting code reuse.
- They provide better security to data.
- It is possible to encapsulate the logic using stored procedures. This allows to change
stored procedure code without affecting clients.
- It is possible to reuse stored procedure execution plans, which are cached in SQL Server's
memory. This reduces server overhead.
13. You want to implement the following relationships while designing tables. How
would you do it?
a.) One-to-one
b.) One-to-many
c.) Many-to-many
a.) One-to-One relationship - can be implemented as a single table and rarely as two tables
with primary and foreign key relationships.
b.) One-to-Many relationships - by splitting the data into two tables with primary key and
foreign key relationships.
c.) Many-to-Many - by using a junction table with the keys from both the tables forming
the composite primary key of the junction table.
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. Differentiate between DELETE and TRUNCATE.
- Truncate can not be rolled back while Delete can be.
- Truncate keeps the lock on table while Delete keeps the lock on each row.
- Truncate resets the counter of the Identity column while Delete doesn't do so.
- Trigger is not fired in Truncate while it happens in Delete.
15. What are the properties of the Relational tables?
Relational tables have six properties:
1. Values are atomic.
2. Column values are of the same kind.
3. Each row is unique.
4. The sequence of columns is insignificant.
5. The sequence of rows is insignificant.
6. Each column must have a unique name.
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://www.inplanttrainingchennai.com
http://www.inplanttraining-in-chennai.com
http://www.Kaashiveinotech.com
http://www.internshipinchennai.in
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

PPTX
Ebook1
PPTX
Ebook12
PPT
Ebook7
PPTX
Ebook11
PPTX
Ebook2
PDF
Top 65 SQL Interview Questions and Answers | Edureka
DOCX
Sql interview questions
PDF
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
Ebook1
Ebook12
Ebook7
Ebook11
Ebook2
Top 65 SQL Interview Questions and Answers | Edureka
Sql interview questions
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...

What's hot (9)

PPT
Ebook8
PDF
Sql server common interview questions and answers page 4
PDF
MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...
PPTX
Sql interview-question-part-6
PPTX
Ebook6
PPTX
Kaashiv SQL Server Interview Questions Presentation
PPTX
Computer Science:Java jdbc
PDF
What is MySQL? | MySQL Tutorial For Beginners | Creating Databases & Tables |...
PPTX
Microsoft SQL Server 2016
Ebook8
Sql server common interview questions and answers page 4
MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...
Sql interview-question-part-6
Ebook6
Kaashiv SQL Server Interview Questions Presentation
Computer Science:Java jdbc
What is MySQL? | MySQL Tutorial For Beginners | Creating Databases & Tables |...
Microsoft SQL Server 2016
Ad

Viewers also liked (14)

PPTX
Sql interview question part 2
PPT
Sql interview question part 10
PPTX
Sql interview question part 5
PPTX
Ebook4
PPTX
Sql interview question part 12
PPTX
Sql interview question part 4
PPTX
Sql interview-question-part-6
PDF
أسس التفكير وأدواته
PPT
Sql interview question part 8
PPTX
Sql interview question part 1
PPTX
Sql interview question part 4
PPT
Ebook10
PPTX
Sql interview question part 6
PDF
الطاقة البشرية والطريق الي القمة
Sql interview question part 2
Sql interview question part 10
Sql interview question part 5
Ebook4
Sql interview question part 12
Sql interview question part 4
Sql interview-question-part-6
أسس التفكير وأدواته
Sql interview question part 8
Sql interview question part 1
Sql interview question part 4
Ebook10
Sql interview question part 6
الطاقة البشرية والطريق الي القمة
Ad

Similar to Ebook3 (20)

PPTX
Sql interview question part 12
PPT
Sql interview question part 7
PPTX
Sql interview question part 1
PDF
SQL dabatase interveiw pdf for interveiw preparation
PPTX
Ebook5
PDF
MSSQL_Book.pdf
PDF
Top 50 SQL Interview Questions and Answer.pdf
PDF
Database Testing Interview Questions By H2kInfosys
PPTX
Sql interview question part 2
PPTX
Top 10 interview question on SQL_Interview_Questions.pptx
PDF
Good sql server interview_questions
DOCX
Sql interview q&a
PPSX
MS SQL Server
DOC
Ora faq
DOC
Ora faq
PDF
Database Systems Design Implementation and Management 11th Edition Coronel So...
DOCX
Sql interview questions_for_fresher
PDF
Sql interview-book
PDF
Sql interview-book
PPTX
Microsoft SQL 000000000000000000001.pptx
Sql interview question part 12
Sql interview question part 7
Sql interview question part 1
SQL dabatase interveiw pdf for interveiw preparation
Ebook5
MSSQL_Book.pdf
Top 50 SQL Interview Questions and Answer.pdf
Database Testing Interview Questions By H2kInfosys
Sql interview question part 2
Top 10 interview question on SQL_Interview_Questions.pptx
Good sql server interview_questions
Sql interview q&a
MS SQL Server
Ora faq
Ora faq
Database Systems Design Implementation and Management 11th Edition Coronel So...
Sql interview questions_for_fresher
Sql interview-book
Sql interview-book
Microsoft SQL 000000000000000000001.pptx

More from kaashiv1 (6)

PPT
Sql interview-question-part-9
PPT
Ebook9
PPTX
Ebook6
PPT
Sql interview question part 9
PPTX
Sql interview question part 3
PPT
Ebook9
Sql interview-question-part-9
Ebook9
Ebook6
Sql interview question part 9
Sql interview question part 3
Ebook9

Recently uploaded (20)

PDF
Five Habits of High-Impact Board Members
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
CloudStack 4.21: First Look Webinar slides
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
Build Your First AI Agent with UiPath.pptx
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
A review of recent deep learning applications in wood surface defect identifi...
PPT
What is a Computer? Input Devices /output devices
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Five Habits of High-Impact Board Members
NewMind AI Weekly Chronicles – August ’25 Week III
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Developing a website for English-speaking practice to English as a foreign la...
Getting started with AI Agents and Multi-Agent Systems
Flame analysis and combustion estimation using large language and vision assi...
UiPath Agentic Automation session 1: RPA to Agents
CloudStack 4.21: First Look Webinar slides
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Enhancing plagiarism detection using data pre-processing and machine learning...
Build Your First AI Agent with UiPath.pptx
Microsoft Excel 365/2024 Beginner's training
OpenACC and Open Hackathons Monthly Highlights July 2025
Module 1.ppt Iot fundamentals and Architecture
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
A review of recent deep learning applications in wood surface defect identifi...
What is a Computer? Input Devices /output devices
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf

Ebook3

  • 1. KAASHIV INFOTECH The Asia, India, Tamil Nadu Book Of Record Holders SQL SERVER –Booklet 3 - 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. What is UNIQUE KEY constraint? A UNIQUE constraint enforces the uniqueness of the values in a set of columns, so no duplicate values are entered. The unique key constraints are used to enforce entity integrity as the primary key constraints. 2. What is FOREIGN KEY? A FOREIGN KEY constraint prevents any actions that would destroy links between tables with the corresponding data values. A foreign key in one table points to a primary key in another table. Foreign keys prevent actions that would leave rows with foreign key values when there are no primary keys with that value. The foreign key constraints are used to enforce referential integrity. 3. What is CHECK Constraint? A CHECK constraint is used to limit the values that can be placed in a column. The check constraints are used to enforce domain integrity. 4. When is the UPDATE_STATISTICS command used? - When the processing of large data is done, this command is used. - Whenever large number of deletions, modification or copy takes place into the tables, the indexes need to be updated to take care of these changes. UPDATE_STATISTICS performs this job.
  • 6. 5. Differentiate between a HAVING CLAUSE and a WHERE CLAUSE. HAVING CLAUSE - HAVING CLAUSE is used only with the SELECT statement. - It is generally used in a GROUP BY clause in a query. - If GROUP BY is not used, HAVING works like a WHERE clause. WHERE Clause - It is applied to each row before they become a part of the GROUP BY function in a query. 6. What do you understand by a view? What does the WITH CHECK OPTION clause for a view do? - A view is a virtual table that consists of fields from one or more real tables. - It is usually used to join multiple tables and get the data. - The WITH CHECK OPTION for a view prevents any modification to the data that does not confirm to the WHERE clause of the view definition. - This allows the data belonging to the view to be updated through the view. 7. Explain query execution plan? - The optimizer available in SQL Server optimizes the code to be effectively executed. - A query execution plan shows how this optimizer would run the query. - Query execution plan can be viewed by : - Using the Show Execution Plan option available in Query Analyzer, - Displaying Estimated Execution Plan on the query dropdown menu, - Use the SET SHOWPLAN_TEXT ON command before running a query and capturing the execution plan event in a SQL Server Profiler trace.
  • 7. 8. What is the function of SQL Server Agent Windows service? -It is a Windows service which handles the tasks scheduled within the SQL Server environment. These tasks are also called as job and are stored with in SQL server. The jobs may run through a trigger, a predefined schedule or on demand. - This service is very useful in determining why a particular job did not run as intended. 9. Comment on Transactions. -Using transactions we can group all SQL commands into a single unit. - The transaction begins with some task and finishes only when all tasks within it are over. - The transaction gets over successfully only when all commands in it are successfully over. Even if one command fails, the whole transaction fails. - The BEGIN TRANSACTION, ROLLBACK TRANSACTION, and COMMIT TRANSACTION statements are used to work with transactions. - A group of tasks starts with the begin statement. - In case of any problem, the rollback command is executed to abort the transaction. - If all the tasks run successfully, all commands are executed through commit statement. 10. Differentiate between a primary key and a unique key. - By default, clustered index on the column are created by the primary key whereas nonclustered index are created by unique key. - Primary key doesn't allow NULLs, but unique key allows one NULL.
  • 8. 11. What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of SP nesting is possible? Recursion is method of problem solving where the solution is arrived at by repetitively applying the logic and solution to the subsets of the problem. Transact-SQL supports recursion. So, yes it is possible for a stored procedure to call itself. Stored procedures and managed code references can be nested up to 32 levels.
  • 9. 12. What is the difference between a Local and a Global temporary table? A local temporary table exists only for the duration of a connection or, if defined inside a compound statement, for the duration of the compound statement. A global temporary table remains in the database permanently, but the rows exist only within a given connection. When connection is closed, the data in the global temporary table disappears. However, the table definition remains with the database for access when database is opened next time.
  • 10. 12. What are the advantages of using Stored Procedures? - They help in reducing the network traffic and latency which in turn boosts application performance. - They help in promoting code reuse. - They provide better security to data. - It is possible to encapsulate the logic using stored procedures. This allows to change stored procedure code without affecting clients. - It is possible to reuse stored procedure execution plans, which are cached in SQL Server's memory. This reduces server overhead. 13. You want to implement the following relationships while designing tables. How would you do it? a.) One-to-one b.) One-to-many c.) Many-to-many a.) One-to-One relationship - can be implemented as a single table and rarely as two tables with primary and foreign key relationships. b.) One-to-Many relationships - by splitting the data into two tables with primary key and foreign key relationships. c.) Many-to-Many - by using a junction table with the keys from both the tables forming the composite primary key of the junction table.
  • 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. Differentiate between DELETE and TRUNCATE. - Truncate can not be rolled back while Delete can be. - Truncate keeps the lock on table while Delete keeps the lock on each row. - Truncate resets the counter of the Identity column while Delete doesn't do so. - Trigger is not fired in Truncate while it happens in Delete. 15. What are the properties of the Relational tables? Relational tables have six properties: 1. Values are atomic. 2. Column values are of the same kind. 3. Each row is unique. 4. The sequence of columns is insignificant. 5. The sequence of rows is insignificant. 6. Each column must have a unique name.
  • 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 [email protected], [email protected], [email protected] Contact Number : 9840678906 ;; 9003718877 ;; 9962345637 ; Visit our other websites: http://www.inplanttrainingchennai.com http://www.inplanttraining-in-chennai.com http://www.Kaashiveinotech.com http://www.internshipinchennai.in 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