In addition, the book includes a comprehensive set of reference appendices, including T-SQL command syntax, system variables and functions, system stored procedures, information schema[r]
(1)Beginning
T-SQL
with Microsoft®
SQL Server® 2005 and 2008
www.wrox.com
$39.99 USA $43.99 CAN
Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved
Recommended Computer Book Categories Database Management General ISBN: 978-0-470-25703-6
Nearly all business applications read, store, and manipulate data stored in relational databases If you use Microsoft SQL Server in any way, you need to learn and use T-SQL, Microsoft’s powerful implementation of the ANSI-standard SQL database query language
This book teaches all of the basics of T-SQL as it’s used with SQL Server 2005 and 2008 databases The authors, leading T-SQL experts, begin with the essentials of SQL Server that are needed to get the most from T-SQL They then quickly move on to introduce T-SQL itself, including the core elements of data retrieval, SQL functions, aggregation and grouping, and multi-table queries, and they fully explain transaction processing and data manipulation using T-SQL The authors also show you how to create and manage T-SQL programming objects, including views, functions, and stored procedures They detail how to optimize T-SQL query performance and design queries for real-world business applications All of the methods and techniques in this book can be used with both Microsoft SQL Server 2005 and 2008 databases
In addition, the book includes a comprehensive set of reference appendices, including T-SQL command syntax, system variables and functions, system stored procedures, information schema views, and FileStream objects
What you will learn from this book
● How to add, modify, and remove records
● How to query multiple tables
● Ways to use views to modify data
● How to create tools for managing databases using T-SQL
● T-SQL programming techniques using views, user-defined functions, and stored
Enhance Your Knowledge Advance Your Career
procedures
● Methods for optimizing query performance
● How to use SQL Server Reporting Services to visualize T-SQL query results
Who this book is for
This book is for beginning SQL Server developers and administrators who need to learn how to use T-SQL Basic familiarity with relational databases and a general understanding of basic SQL functions is necessary
T-SQL wi th M ic ro s o f t ® SQ L Se rv e r ® 20 0 5 a n d 20 0 8 Turley, Wood Beginning spine=1.344"
Updates, source code, and Wrox technical support at www.wrox.com Beginning
T-SQL
with Microsoft®
SQL Server® 2005 and 2008
Paul Turley, Dan Wood
Wrox Programmer to ProgrammerTM
(2)(3)Beginning
T-SQL with Microsoft® SQL Server® 2005 and 2008
Introduction xix
Chapter 1: Introducing T-SQL and Data Management Systems
Chapter 2: SQL Server Fundamentals 23
Chapter 3: SQL Server Tools 49
Chapter 4: Introducing the T-SQL Language 101
Chapter 5: Data Retrieval 129
Chapter 6: SQL Functions 165
Chapter 7: Aggregation and Grouping 219
Chapter 8: Multi-Table Queries 245
Chapter 9: Advanced Queries and Scripting 273
Chapter 10: Transactions 297
Chapter 11: Advanced Capabilities 329
Chapter 12: T-SQL Programming Objects 355
Chapter 13: Creating and Managing Database Objects 409
Chapter 14: Analyzing and Optimizing Query Performance 443
Chapter 15: T-SQL in Applications and Reporting 477
Appendix A: Command Syntax Reference 527
Appendix B: System Variables and Functions Reference 549
Appendix C: System Stored Procedure Reference 573
Appendix D: Information Schema Views Reference 595
Appendix E: FileStream Objects and Syntax 609
Appendix F: Answers to Exercises 613
Index 625
ffirs.indd i
(4)(5)Beginning
T-SQL with Microsoft® SQL Server® 2005 and 2008
Paul Turley and Dan Wood
Wiley Publishing, Inc.
ffirs.indd iii
(6)screen capture, and code sample is available with your subscription to the Wrox Reference Library For answers when and where you need them, go to wrox.books24x7.com and subscribe today!
badvert.indd 648
(7)Beginning
T-SQL
with Microsoft®
SQL Server® 2005 and 2008
www.wrox.com
$39.99 USA $43.99 CAN
Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing
a structured, tutorial format that will guide you through all the techniques involved
Recommended Computer Book Categories Database Management General ISBN: 978-0-470-25703-6 Nearly all business applications read, store, and manipulate data stored in
relational databases If you use Microsoft SQL Server in any way, you need to learn and use T-SQL, Microsoft’s powerful implementation of the ANSI-standard SQL database query language
This book teaches all of the basics of T-SQL as it’s used with SQL Server 2005 and 2008 databases The authors, leading T-SQL experts, begin with the essentials of SQL Server that are needed to get the most from T-SQL They then quickly move on to introduce T-SQL itself, including the core elements of data retrieval, SQL functions, aggregation and grouping, and multi-table queries, and they fully explain transaction processing and data manipulation using T-SQL The authors also show you how to create and manage T-SQL programming objects, including views, functions, and stored procedures They detail how to optimize T-SQL query performance and design queries for real-world business applications All of the methods and techniques in this book can be used with both Microsoft SQL Server 2005 and 2008 databases
In addition, the book includes a comprehensive set of reference appendices, including T-SQL command syntax, system variables and functions, system stored procedures, information schema views, and FileStream objects
What you will learn from this book
● How to add, modify, and remove records
● How to query multiple tables
● Ways to use views to modify data
● How to create tools for managing databases using T-SQL
● T-SQL programming techniques using views, user-defined functions, and stored
Enhance Your Knowledge Advance Your Career
procedures
● Methods for optimizing query performance
● How to use SQL Server Reporting Services to visualize T-SQL query results
Who this book is for
This book is for beginning SQL Server developers and administrators who need to learn how to use T-SQL Basic familiarity with relational databases and a general understanding of basic SQL functions is necessary
T-SQL wi th M ic ro s o f t ® SQ L Se rv e r ® 20 0 5 a n d 20 0 8 Turley, Wood Beginning spine=1.344"
Updates, source code, and Wrox technical support at www.wrox.com
Beginning
T-SQL
with Microsoft®
SQL Server® 2005 and 2008
Paul Turley, Dan Wood
Wrox Programmer to ProgrammerTM