close menu
Bookswagon-24x7 online bookstore
close menu
My Account
Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes: (Sams Teach Yourself)

Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes: (Sams Teach Yourself)

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes offers straightforward, practical answers when you need fast results. By working through 10-minute lessons, you’ll learn everything you need to know to take advantage of Microsoft SQL Server’s T-SQL language.

 

This handy pocket guide starts with simple data retrieval and moves on to more complex topics, including the use of joins, subqueries, full text-based searches, functions and stored procedures, cursors, triggers, table constraints, XML, and much more.

 

You’ll learn what you need to know methodically, systematically, and simply–in highly focused lessons designed to make you immediately and effortlessly productive.

 

Tips point out shortcuts and solutions

 

Cautions help you avoid common pitfalls

 

Notes explain additional concepts, and provide additional information

 

10 minutes is all you need to learn how to…

  • Use T-SQL in the Microsoft SQL Server environment
  • Construct complex T-SQL statements using multiple clauses and operators
  • Filter data so you get the information you need quickly
  • Retrieve, sort, and format database contents
  • Join two or more related tables
  • Make SQL Server work for you with globalization and localization
  • Create subqueries to pinpoint your data
  • Automate your workload with triggers
  • Create and alter database tables
  • Work with views, stored procedures, and more

 Register your book at www.samspublishing.com/register to download examples and source code from this book.



Table of Contents:
 Introduction                                                                                                  1

        Who Is This Book For?..................................................................................................... 2

        Companion Website............................................................................................................. 2

        Conventions Used in This Book................................................................................. 3

    1    Understanding SQL                                                                               5

        Database Basics....................................................................................................................... 5

        What Is SQL?......................................................................................................................... 11

        Try It Yourself...................................................................................................................... 12

        Summary.................................................................................................................................... 12

    2    Introducing SQL Server                                                                       13

        What Is SQL Server?......................................................................................................... 13

        SQL Server Tools................................................................................................................ 16

        Summary.................................................................................................................................... 18

    3    Working with SQL Server                                                                   19

        Making the Connection................................................................................................... 19

        Selecting a Database........................................................................................................... 20

        Learning About Databases and Tables................................................................ 21

        Summary.................................................................................................................................... 25

    4    Retrieving Data                                                                                     27

        The SELECT Statement................................................................................................. 27

        Retrieving Individual Columns.................................................................................. 27

        Retrieving Multiple Columns..................................................................................... 29

        Retrieving All Columns................................................................................................... 31

        Retrieving Distinct Rows.............................................................................................. 32

        Limiting Results.................................................................................................................... 33

        Using Fully Qualified Table Names...................................................................... 36

        Summary.................................................................................................................................... 36

    5    Sorting Retrieved Data                                                                        37

        Sorting Data............................................................................................................................. 37

        Sorting by Multiple Columns.................................................................................... 39

        Specifying Sort Direction.............................................................................................. 40

        Summary.................................................................................................................................... 43

    6    Filtering Data                                                                                         45

        Using the WHERE Clause............................................................................................ 45

        The WHERE Clause Operators................................................................................ 46

        Summary.................................................................................................................................... 52

    7    Advanced Data Filtering                                                                     53

        Combining WHERE Clauses....................................................................................... 53

        Using the IN Operator..................................................................................................... 57

        Using the NOT Operator.............................................................................................. 59

        Summary.................................................................................................................................... 60

    8    Using Wildcard Filtering                                                                     61

        Using the LIKE Operator.............................................................................................. 61

        Tips for Using Wildcards.............................................................................................. 67

        Summary.................................................................................................................................... 67

    9    Creating Calculated Fields                                                                  69

        Understanding Calculated Fields.............................................................................. 69

        Concatenating Fields......................................................................................................... 70

        Performing Mathematical Calculations............................................................... 75

        Summary.................................................................................................................................... 77

    10    Using Data Manipulation Functions                                               79

        Understanding Functions............................................................................................... 79

        Using Functions.................................................................................................................... 80

        Summary.................................................................................................................................... 89

    11    Summarizing Data                                                                               91

        Using Aggregate Functions........................................................................................... 91

        Aggregates on Distinct Values................................................................................... 98

        Combining Aggregate Functions............................................................................ 100

        Summary................................................................................................................................. 100

    12    Grouping Data                                                                                   101

        Understanding Data Grouping................................................................................ 101

        Creating Groups................................................................................................................ 102

        Filtering Groups................................................................................................................ 103

        Grouping and Sorting..................................................................................................... 106

        SELECT Clause Ordering........................................................................................... 108

        Summary................................................................................................................................. 109

    13    Working with Subqueries                                                               111

        Understanding Subqueries.......................................................................................... 111

        Filtering by Subquery.................................................................................................... 111

        Using Subqueries as Calculated Fields.............................................................. 116

        Checking for Existence with Subqueries.......................................................... 119

        Summary................................................................................................................................. 121

    14    Joining Tables                                                                                   123

        Understanding Joins....................................................................................................... 123

        Creating a Join..................................................................................................................... 126

        Summary................................................................................................................................. 135

    15    Creating Advanced Joins                                                                137

        Using Table Aliases........................................................................................................ 137

        Using Different Join Types...................................................................................... 138

        Using Joins with Aggregate Functions............................................................. 145

        Using Joins and Join Conditions........................................................................... 147

        Summary................................................................................................................................. 147

    16    Combining Queries                                                                           149

        Understanding Combined Queries....................................................................... 149

        Creating Combined Queries...................................................................................... 150

        Summary................................................................................................................................. 155

    17    Full-Text Searching                                                                          157

        Understanding Full-Text Searching..................................................................... 157

        Setting Up Full-Text Searching.............................................................................. 158

        Performing Full-Text Searches................................................................................ 162

        Summary................................................................................................................................. 170

    18    Inserting Data                                                                                   171

        Understanding Data Insertion................................................................................. 171

        Inserting Complete Rows........................................................................................... 172

        Inserting Multiple Rows............................................................................................. 176

        Inserting Retrieved Data.............................................................................................. 177

        Summary................................................................................................................................. 179

    19    Updating and Deleting Data                                                           181

        Updating Data..................................................................................................................... 181

        Deleting Data....................................................................................................................... 183

        Guidelines for Updating and Deleting Data.................................................. 184

        Summary................................................................................................................................. 185

    20    Creating and Manipulating Tables                                                187

        Creating Tables................................................................................................................... 187

        Updating Tables................................................................................................................ 195

        Deleting Tables................................................................................................................... 197

        Renaming Tables............................................................................................................... 198

        Summary................................................................................................................................. 198

    21    Using Views                                                                                      199

        Understanding Views..................................................................................................... 199

        Using Views.......................................................................................................................... 201

        Summary................................................................................................................................. 208

    22    Programming with T-SQL                                                                209

        Understanding T-SQL Programming.................................................................. 209

        Using Variables................................................................................................................... 210

        Using Conditional Processing.................................................................................. 217

        Grouping Statements..................................................................................................... 219

        Using Looping..................................................................................................................... 221

        Summary................................................................................................................................. 222

    23    Working with Stored Procedures                                                   223

        Understanding Stored Procedures........................................................................ 223

        Why Use Stored Procedures.................................................................................... 224

        Using Stored Procedures............................................................................................. 225

        Summary................................................................................................................................. 234

    24    Using Cursors                                                                                   235

        Understanding Cursors................................................................................................. 235

        Working with Cursors................................................................................................... 235

        Summary................................................................................................................................. 242

    25    Using Triggers                                                                                  243

        Understanding Triggers................................................................................................ 243

        Using Triggers..................................................................................................................... 247

        Summary................................................................................................................................. 250

    26    Managing Transaction Processing                                               251

        Understanding Transaction Processing............................................................ 251

        Controlling Transactions............................................................................................. 253

        Summary................................................................................................................................. 258

    27    Working with XML                                                                          259

        Understanding SQL Server XML Support................................................... 259

        Retrieving Data as XML............................................................................................. 260

        Storing XML Data........................................................................................................... 264

        Searching for XML Data............................................................................................. 267

        Summary................................................................................................................................. 268

    28    Globalization and Localization                                                        269

        Understanding Character Sets and Collation Sequences...................... 269

        Working with Collation Sequences...................................................................... 270

        Managing Case Sensitivity........................................................................................ 273

        Working with Unicode.................................................................................................. 275

        Summary................................................................................................................................. 277

    29    Managing Security                                                                           279

        Understanding Access Control............................................................................... 279

        Managing Users................................................................................................................. 281

        Managing Access Rights............................................................................................. 283

        Summary................................................................................................................................. 285

    30    Improving Performance                                                                   287

        Improving Performance................................................................................................ 287

        Summary................................................................................................................................. 289

Appendixes

    A Getting Started with SQL Server and T-SQL                                     291

    B The Example Tables                                                                               295

    C T-SQL Statement Syntax                                                                       303

    D T-SQL Datatypes                                                                                   309

    E T-SQL Reserved Words                                                                        315


Best Seller

| | See All

Product Details
  • ISBN-13: 9780768690002
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Pearson
  • Language: English
  • Series Title: Sams Teach Yourself
  • ISBN-10: 0768690005
  • Publisher Date: 02 Aug 2007
  • Binding: Digital download
  • No of Pages: 368


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Be The First to Review
Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes: (Sams Teach Yourself)
Pearson Education (US) -
Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes: (Sams Teach Yourself)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Sams Teach Yourself Microsoft SQL Server T-SQL in 10 Minutes: (Sams Teach Yourself)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA