Sams Teach Yourself Transact-SQL in 21 Days
Home > Computing and Information Technology > Computer programming / software engineering > Database programming > Sams Teach Yourself Transact-SQL in 21 Days: (Sams Teach Yourself)
Sams Teach Yourself Transact-SQL in 21 Days: (Sams Teach Yourself)

Sams Teach Yourself Transact-SQL in 21 Days: (Sams Teach Yourself)


     4.6  |  10 Reviews 
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Sams Teach Yourself Transact-SQL in 21 Days, 2E will teach programmers how to develop Transact-SQL queries. There will be a focus on providing methods for improving productivity without a reducing performance. Specifically, the reader will:Learn Transact-SQL syntax Learn how to add, delete, and modifying data using Transact-SQL Understand coding standards Review variations from ANSI-standard SQL Be presented with basic server operations. Recognize performance issues with queries. This book will also include:Constructs such as CUBE, ROLLUP, CASE, and JOIN. Techniques to solve complex problems How the server uses indexes Methods to write (correctly) stored procedures and triggers. Templates of procedures and triggers (reference) Advanced Topics such as: Outer and self joins Temporary tables Sub-queries.

Table of Contents:
INTRODUCTION. WEEK 1. WORKING WITH ROWS AND COLUMNS. Day 1. Introduction to SQL and the Query Analyzer. SQL and SQL Server. What Is T-SQL? Retrieving Data with Query Analyzer. Installing the Query Analyzer. Logging In to and Changing the Database. The Query Toolbar. Executing Your First Query. Understanding SELECT and FROM. Using the Query Analyzer Editor. Using Query Analyzer to Learn about Tables. Introducing SQL Server 2000 Enterprise Manager. Registering a Server. Seeing How Enterprise Manager Works. Summary. Q&A. Workshop. Quiz. Exercise. Day 2. Filtering and Sorting Data. Filtering Data with WHERE Clauses. Matching Column Data with Equality Statements. Matching Rows Using Not Equals (!= or <>). Searching for Numeric Values. Combining Conditions with OR and AND. The AND Condition. Combining AND and. Searching for Ranges of Values with Inequalities (>, <, BETWEEN). Combining Inequality Conditions. Searching for Ranges of Values with BETWEEN. Using Inequalities with Strings. Getting Correct Results from Date Comparisons. Dates in Other Languages and Formats. Looking for Values in a List: The IN Operator. Using the NOT IN Operator. Wildcard Searches with LIKE. The NOT LIKE Operator. Searching for Wildcard Characters. Summary of Search Conditions. Sorting Data (ORDER BY). Sorting by One Column. Sorting by Multiple Columns. Sorting by Column Number. Retrieving Unique Rows. Using DISTINCT to Find Unique Rows. Avoiding DISTINCT. Summary. Q&A. Workshop. Quiz. Exercises. Day 3. Working with Columns. Column Characteristics. Data Types. Data Type Precedence. Using Null Data. Changing Result Sets. Using Column Aliases. Using String Constants. Using Operators. Using Functions. Using String Functions. Using Arithmetic Functions. Using Date Functions. Using the CASE Statement. Summary. Q&A. Workshop. Quiz. Exercises. Day 4. Working with Row Aggregates and Grouping. Working with Aggregate Functions. Using SUM() and AVG(). Using MIN() and MAX(). Using Aggregates in a WHERE Clause. Using COUNT(). Implementing Error Handling for Aggregates. Understanding Aggregates and Null. Computing Aggregates with DISTINCT. Reviewing Aggregates. Grouping Data. GROUP BY Clauses. Grouping with all. Using Multi-Level Grouping. Grouping by Complex Expressions. Using HAVING to Remove Grouped Rows. Combining Subtotals and Totals with ROLLUP and CUBE. Creating Pivot Tables. Summary. Q&A. Workshop. Quiz. Exercises. Day 5. Joining Tables. Understanding Joins. Creating and Using Entity Relationship Diagrams (ERDs). Writing Your First Join Using an Inner Join. Understanding More about Joins. Introducing Cross Joins. Understanding More about Joins. Using Table Aliases. Working with Multi-Table Joins. Joining Tables with Multi-Part Keys. Writing Outer Joins. Joining a Table to Itself. Using Parent-Child Relationships. Naming Standards in Self-Joins. Using Union to Merge Result Sets. SQL Keywords and UNION. Summary. Q&A. Workshop. Quiz. Exercises. Day 6. Using Subqueries. Understanding Subqueries. A Basic Subquery. Benefits of Using Subqueries. The Rules of Using Subqueries. Matching a Value with Subqueries. Creating Subqueries with Comparison Operators. Using ALL and ANY. Checking for Membership. Writing Your First Subquery with IN. Using the NOT IN Condition. Creating Correlated Subqueries. Things to Remember When Using IN. Writing Subqueries with EXIST. Comparing Joins and Subqueries. Summary. Q&A. Workshop. Quiz. Exercises. Day 7. Adding, Changing, and Deleting Rows. Creating Tables. Deleting Tables. Inserting Rows. Inserting Rows with INSERT…VALUES. Inserting Rows with INSERT…SELECT. Inserting Rows with SELECT INTO. Updating Rows. Updating Data Using Data in Other Tables. Reviewing the Limits on the UPDATE Statement. Deleting Rows. Ensuring a Successful Deletion. Reviewing the Limits on the DELETE Statement. Truncating Tables. Understanding Identity Columns and the TRUNCATE Statement. Summary. Q&A. Workshop. Quiz. Exercises. WEEK 1. IN REVIEW. WEEK 2. PROGRAMMING WITH T-SQL. Day 8. Defining Data. What Is Data Definition Language (DDL)? Creating a New Database. Altering a Database. Dropping or Deleting a Database. DDL Versus the Enterprise Manager. Working with Tables. Rules about Table and Column Names. Understanding Column Data Types. User-Defined Data Types. Choosing Nullability. Default Columns. Computed Columns. Altering Tables. Renaming Tables and Columns. Changing Data Types and Nullability. Defining Constraints. CHECK Constraints. Defining Table Relationships. Primary and Foreign Keys. Using Declarative Referential Integrity (DRI). Summary. Q&A. Workshop. Quiz. Exercises. Day 9. Indexes and Performance. How SQL Server Uses Indexes. Why Use Indexes? Understanding Optimization. Understanding Clustered and Nonclustered Indexes. Understanding Unique Indexes. Indexing Computed Columns. Forcing Index Selection. Defining and Managing Indexes. Creating an Index. Using Full-Text Indexing. Performing Index Maintenance and Using Performance Tools. Full-Text Indexing Scheduling. Using Server Statistics. Using the Query Analyzer Tools. Summary. Q&A /li>. Workshop. Quiz. Exercises. Day 10. Views and Temporary Tables. Using Views to Access Data. Creating a Basic View. Using Enterprise Manager Query Builder to Create Views. Using the Enterprise Manager Create View Wizard. Editing Views in Query Analyzer. Using Views for Security. Creating Views with Multiple Tables. Modifying Data in a View. Modifying and Renaming Views. Deleting a View. Using Temporary Tables for Storing Data. Creating a Temporary Table. Creating a Temporary Table on System Startup. Determining When to Use a Temporary Table. Temporary Tables Versus Views. Summary. Q&A. Workshop. Quiz. Exercises. Day 11. T-SQL Programming Fundamentals. Handling Variables. Declaring and Setting Local Variables. Using Global Variables. Reviewing Programming Structures. Understanding Batches. Controlling Program Flow. Using the PRINT Statement. Using Comments. Trapping Errors and Implementing Error Handling. Communicating Error Messages. Raising an Error Message. Creating an Error Message. Coding Standard Error Handling Methods. Summary. Q&A. Workshop. Quiz. Exercise. Day 12. Understanding Database Locking. Lock Fundamentals. Understanding Lock Modes. Examining Lock Scope. Examining Locks. Testing Lock Interaction. Setting the Lock Timeout. Monitoring Blocking Locks. Understanding Lock Persistence. Working with Transaction Isolation Levels. Using Hints to Control Lock Types. Deadlocks. Summary. Q&A. Workshop. Quiz. Exercises. Day 13. Programming with Transactions. Understanding Transaction Basics. Understanding Automatic Transactions and the Transaction Log. Understanding the Write-Ahead Log. Rolling Back Changes. Controlling Transactions in Your Programs. Transaction Control Statements. Implicit, Explicit, and Autocommit Transactions. Transaction Error Handling. Managing Concurrency. Optimistic Locking. Application Resource Locking. Handling Long-Running Transactions. Summary. Q&A. Workshop. Quiz. Exercise. Day 14. Using Cursors. Defining Cursors. Creating a Cursor. Cursor Types. Cursor Scope. Working with Cursors. Declaring the Cursor. Opening the Cursor. Declaring the Variables. Fetching the Rows. Closing the Cursor. Destroying the Cursor. Other Cursor Functions. Cursor Locking. Summary. Q&A. Workshop. Quiz. Exercise. WEEK 2. IN REVIEW. WEEK 3. PROCEDURES AND TRIGGERS. Day 15. Writing and Executing Stored Procedures. Benefits of Stored Procedures. Writing Your First Stored Procedure. The INSERT Statement. The insert Procedure. Getting Information about Procedures. Executing Procedures. Working with Parameters. Execution Using a Parameter. Default Parameters. Returning Procedure Status. Using Output Parameters. Putting Output Parameters to Work. Communicating Between Stored Procedures. Using Output Parameters with Remote Procedure Calls. Five Ways to Communicate Between Stored Procedures and Client Programs. Summary. Q&A. Workshop. Quiz. Exercises. Day 16. Optimizing Stored Procedures. Understanding Stored Procedure Optimization. Using Good Procedure Performance Practices. Understanding the Compilation Process. Using the RECOMPILE Option in Stored Procedures. Using Table Variables and Temporary Tables with Procedures. Using Table Variables in a Stored Procedure. Understanding the Scope of a Temporary Table. Indexing Temporary Tables. Handling Transactions in Stored Procedures. Solving the Transactional Problem. Summary. Q&A. Workshop. Quiz. Exercises. Day 17. Debugging Stored Procedures. Debugging Explained. Finding the Problems. Creating a Good Work Environment. Displaying Debugging Messages. Using the PRINT Statement. Tracking Time. Tracking Elapsed Time Using Temporary Tables. Performing Error Checking in a Stored Procedure. Using the T-SQL Debugger. Starting the Debugger. Using the T-SQL Debugger Interface. Setting Breakpoints. Single-Stepping in a Procedure. Getting Output. Summary. Q&A. Workshop. Quiz. Exercises. Day 18. Writing and Testing Triggers. Understanding Triggers. Writing Your First Trigger. Getting Information on Triggers. Maintaining Triggers. Naming Triggers. Executing Triggers. When Do Triggers Fire? How Does a Trigger Fire? INSTEAD OF Triggers. Using Trigger Resources. Accessing the INSERTED and DELETED Tables. Using the UPDATE() Function. Using Rollback in a Trigger. Determining When to Use Triggers. Summary. Q&A. Workshop. Quiz. Exercise. Day 19. Solving Special Trigger Problems. Managing Referential Integrity with Triggers. Enforcing Referential Integrity with Triggers. Enforcing Business Rules with Triggers. Cascading Update and Delete Triggers. Managing Special Database Actions with Triggers. Managing Derived Columns. Synchronizing Real-Time Updates Between Databases. Maintaining an Audit Trail. Summary. Q&A. Workshop. Quiz. Exercise. Day 20. User-Defined Functions in SQL. Understanding User-Defined Functions. Creating a Function. Creating a Scalar Function. Creating a Single Table Value Function. Creating a Multi-Table Function. Reviewing Advanced UDF Topics. Rewriting Stored Procedures as Functions. UDF Performance and Recommendations. Using Functions Instead of Views. Error Trapping and Functions. Summary. Q&A. Workshop. Quiz. Exercise. Day 21. Handling BLOBs in T-SQL. Understanding Large Data Types. How Large Data Is Stored. Data Storage Options. Managing BLOB Data. Using the Large Object System Functions. Using the READTEXT, WRITETEXT, and UPDATETEXT Statements. Summary. Q&A. Workshop. Quiz. Exercises. WEEK 3. IN REVIEW. APPENDIX. Appendix A. Answers to Quizzes and Exercises. Index.

About the Author :
Lowell Mauer has been in data processing for more than 20 years as a programmer, instructor, and consultant. He has taught programming at Montclair State College in New Jersey and has developed and marketed several Visual Basic applications, including a SQL Server-based reservation system for a private golf course. As a manager of technical support, he has attended seminars and training sessions in several countries and is an expert in more than six computer languages. He currently is the Manager of Consulting for Cognos Corporation in New York. David Solomon, President of Metis Technologies, LLC: I've been working in, on, and around SQL Server (in its incarnations from Sybase and Microsoft) since 1990, and I can't believe that I can still make a living in this technology. I consult and teach courses on SQL Server, and write books like this one from time to time. When I'm not wasting my time working, I coach youth soccer enthusiastically. If you come to Troy, you'll probably find me on a soccer field, shouting and chasing kids and pretending I'm one of them. I save the best of my time for my kids, Adam and Luke, my wife Carola, and my three cats, Lucifer, Sam, and Daisy. Right now, Lucifer is sitting in my desk chair, which leaves me standing. Bennett McEwan is president of Geist, LLC, a company in scenic upstate New York, specializing in explaining SQL Server. The work Ben enjoys most is mentoring, where he helps programmers or database administrators through the tough spots in mission-critical applications. Ben also teaches SQL Server training classes, writes, and designs Visual Basic client/ server applications, and consults on difficult SQL Server performance issues. You can catch him on comp.databases.ms-sqlserver and in the pages of Microsoft SQL Server Professional (Pinnacle Publishing).


Best Sellers


Product Details
  • ISBN-13: 9780672319679
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Sams Publishing
  • Height: 230 mm
  • No of Pages: 640
  • Series Title: Sams Teach Yourself
  • Weight: 1060 gr
  • ISBN-10: 0672319675
  • Publisher Date: 14 Mar 2001
  • Binding: Paperback
  • Language: English
  • Returnable: N
  • Spine Width: 39 mm
  • Width: 189 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

     4.6  |  10 Reviews 
out of (%) reviewers recommend this product
Top Reviews
Rating Snapshot
Select a row below to filter reviews.
5
4
3
2
1
Average Customer Ratings
     4.6  |  10 Reviews 
00 of 0 Reviews
Sort by :
Active Filters

00 of 0 Reviews
SEARCH RESULTS
1–2 of 2 Reviews
    BoxerLover2 - 5 Days ago
    A Thrilling But Totally Believable Murder Mystery

    Read this in one evening. I had planned to do other things with my day, but it was impossible to put down. Every time I tried, I was drawn back to it in less than 5 minutes. I sobbed my eyes out the entire last 100 pages. Highly recommend!

    BoxerLover2 - 5 Days ago
    A Thrilling But Totally Believable Murder Mystery

    Read this in one evening. I had planned to do other things with my day, but it was impossible to put down. Every time I tried, I was drawn back to it in less than 5 minutes. I sobbed my eyes out the entire last 100 pages. Highly recommend!


Sample text
Photo of
    Media Viewer

    Sample text
    Reviews
    Reader Type:
    BoxerLover2
    00 of 0 review

    Your review was submitted!
    Sams Teach Yourself Transact-SQL in 21 Days: (Sams Teach Yourself)
    Pearson Education (US) -
    Sams Teach Yourself Transact-SQL in 21 Days: (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 Transact-SQL in 21 Days: (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


      Inspired by your browsing history


      Your review has been submitted!

      You've already reviewed this product!