Beginning T-SQL 2012 [electronic resource] /
Kellenberger, Kathi.author.
Shaw, Scott.author.
Beginning T-SQL 2012 is the first step toward learning the T-SQL language that underlies Microsoft’s SQL Server database engine. T-SQL is essential in writing SQL statements to get data into and out of a database. T-SQL is the foundation for business logic embedded in the database in the form of stored procedures and functions. Beginning T-SQL 2012 starts you on the path to mastering T-SQL, with an emphasis on best practices and sound coding techniques. Beginning T-SQL 2012 begins with an introduction to databases, normalization, and to SQL Server Management Studio. Each subsequent chapter teaches an aspect of T-SQL, building on the skills learned in previous chapters. Exercises in each chapter give readers an opportunity for the hands-on practice that leads to true learning and distinguishes the competent professional. Imparts best practices for writing T-SQL Helps you avoid common errors Shows how to write scalable code for good performance.
Title Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; Foreword; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; CHAPTER 1 Getting Started; Installing SQl Server Express Edition; Installing the Sample Databases; Installing Books Online; Using Books Online; Using SQl Server Management Studio; Launching SQLServer Management Studio; Running Queries; Exploring Database Concepts; What Is SQL Server?; Editions; Service vs. Application; Database As Container; Data Is Stored in Tables; Data Types; Normalization; Understanding Indexes
Database SchemasSummary; CHAPTER 2 Writing Simple SELECT Queries; Using the SELECT Statement; Selecting a Literal Value; Retrieving from a Table; Generating a Select-List; Mixing Literals and Column Names; Filtering Data; Adding a WHERE Clause; Using WHEREClauses with Alternate Operators; Using BETWEEN; Using NOT BETWEEN; Filtering On Date and Time; Pattern Matching with LIKE; Restricting the Characters in Pattern Matches; Combining Wildcards; Using WHERE Clauses with Two Predicates; Using WHERE Clauses with Three or More Predicates; Using NOT with Parentheses; Using the IN Operator
Working with NothingPerforming a Full-Text Search; Using CONTAINS; Using Multiple Terms with CONTAINS; Searching Multiple Columns; Using FREETEXT; Sorting Data; Thinking About Performance; Taking Advantage of Indexes; Viewing Execution Plans; Summary; CHAPTER 3 Using Functions and Expressions; Expressions Using Operators; Concatenating Strings; Concatenating Strings and NULL; CONCAT; ISNULL and COALESCE; Concatenating Other Data Types to Strings; Using Mathematical Operators; Data Type Precedence; Using Functions; Using String Functions; RTRIM and LTRIM; LEFT and RIGHT; LEN and DATALENGTH
CHARINDEXSUBSTRING; CHOOSE; REVERSE; UPPER and LOWER; REPLACE; Nesting Functions; Using Date Functions; GETDATE and SYSDATETIME; DATEADD; DATEDIFF; DATENAME and DATEPART; DAY, MONTH, and YEAR; CONVERT; FORMAT; Using Mathematical Functions; ABS; POWER; SQUARE and SQRT; ROUND; RAND; System Functions; The CASE Function; Simple CASE; Searched CASE; Listing a Column as the Return Value; IIF; COALESCE; Admin Functions; Using Functions in the WHERE and ORDERBY Clauses; The TOP Keyword; Ranking Functions; Using ROW_NUMBER; Using RANK and DENSE_RANK; Using NTILE; Thinking About Performance
Using Functions in the WHERE ClauseSummary; CHAPTER 4 Querying Multiple Tables; Writing INNER JOINS; Joining Two Tables; Avoiding an Incorrect Join Condition; Joining on a Different Column Name; Joining on More Than One Column; Joining Three or More Tables; Writing Outer Joins; Using LEFT OUTER JOIN; Using RIGHT OUTER JOIN; Using OUTER JOIN to Find Rows with No Match; Adding a Table to the Right Side of a Left Join; Adding a Table to the Left Side of a Left Join; FULL OUTER JOIN; CROSS JOIN; Self-Joins; Writing Subqueries; Using a Sub query in an IN List; Using a Subquery and NOT IN
Using a Subquery Containing NULLwith NOT IN
Includes index.
Beginning T-SQL 2012 is the first step toward learning the T-SQL language that underlies Microsoft’s SQL Server database engine. T-SQL is essential in writing SQL statements to get data into and out of a database. T-SQL is the foundation for business logic embedded in the database in the form of stored procedures and functions. Beginning T-SQL 2012 starts you on the path to mastering T-SQL, with an emphasis on best practices and sound coding techniques. Beginning T-SQL 2012 begins with an introduction to databases, normalization, and to SQL Server Management Studio. Each subsequent chapter teaches an aspect of T-SQL, building on the skills learned in previous chapters. Exercises in each chapter give readers an opportunity for the hands-on practice that leads to true learning and distinguishes the competent professional. Imparts best practices for writing T-SQL Helps you avoid common errors Shows how to write scalable code for good performance.
Database management.
Data structures (Computer science).
Database Management.
Data Structures and Information Theory.