Transact-SQL, or T-SQL, is Microsoft Corporation's powerful implementation of the ANSI standard SQL database query language, which was designed to retrieve, manipulate, and add data to relational database management systems (RDBMS). You may already have a basic idea of what SQL is used for, but you may not have a good understanding of the concepts behind relational databases and the purpose of SQL. This book will help you build a solid foundation of understanding, beginning with core relational database concepts and continuing to reinforce those concepts with real-world T-SQL query applications. If you are familiar with relational database concepts but are new to Microsoft SQL Server or the T-SQL language, this book will teach you the basics from the ground up. If you're familiar with earlier versions of SQL Server, it will get you up-to-speed on the newest features. And if you know SQL Server 2005, you'll learn about some exciting new capabilities in SQL Server 2008. This book introduces the T-SQL language and its many uses, and serves as a comprehensive guide at a beginner through intermediate level. Our goal in writing this book was to cover all the basics thoroughly and to cover the most common applications of T-SQL at a deeper level. Depending on your role and skill level, this book will serve as a companion to the other Wrox books in the Microsoft SQL Server Beginning and Professional series.
As a db professional for many years, I bought this to bring me up to speed on the 2005 and 2008 new features and tsql, and I feel it is serving that purpose well for me (I have not yet completed the book). The subject areas are well organized and well covered, and I find the writing style to be lucid and very readable. I did notice what I consider to be some poor advice (hence only 4 star rating) related to data typings- specifically the advice to use numeric data type for data that would never make sense to apply mathematical operations. The author's rationale' for this is that numeric data is preferred for sorting and comparison over character data. The flaw in that approach is thinking that a fast answer is better than a correct answer. And also that a fast answer is preferable over user's confusion on the meaning and use of a data item over the course of it's useful life. Anyone who has been supporting data processing for years will know that half the battle is in keeping the semantics (meaning) of the data that is stored in the DB clear to all stakeholders in an enterprise. Applying numeric data type to data where mathematical operations on it will produce nonsense practically guarantees that such nonsense will be at least attempted, and perhaps even distributed at some point in an organization. What is the meaning of adding two phone numbers together? Or two social security numbers? It's nonsense. In addition, it is not at all impossible over the course of time that a business concept that uses numerals but is not mathematical may need to include non-numeric characters at a later time- after all it is not mathematical data. When that happens you will be in for a big hassle if you have to change the type for a lot of data. There are few more fundamental and important needs in database design than getting data types "right". It's too bad this book offers a bit of poor advice in that area.
Kiss your beginner status goodbye...
Published by Thriftbooks.com User , 15 years ago
Microsoft's now ubiquitous SQL Server database engine is far more complicated than it first appears. Apart from the voluminous administrative tasks it can accomplish and support, it provides a vast set of commands for data retrieval and manipulation known as "Transact-SQL" or "T-SQL." In the spirit of Wrox books, this book is big, red, and dedicated to a single topic: this very T-SQL toolset. Fifteen chapters comprising over 600 pages covers everything a T-SQL beginner needs. Introductory chapters provide background information on Relational Databases, the versions of SQL Server, database normalization, and tools available in SQL Server (many of which are beyond this book's scope). A detailed discussion of T-SQL syntax finally appears in Chapter 4, but the real meat begins in Chapter 5 with the universal command SELECT. Subsequqnt chapters provide explanations and copious code examples (for both SQL Server 2005 and 2008) for SQL Functions (e.g., AVG(), DATEADD(), CONVERT(), etc.), grouping, joins, subqueries, cursors, transactions (with error handling via TRY and CATCH), the handy but unintuitive PIVOT, a discussion of objects (in database speak this means things such as tables, views, procedures and functions), query optimization (with graphical execution plans) and a concluding chapter that rolls T-SQL into an application development and reporting context. Appendices follow with quick references to the tools discussed. This is a beginner's book. Although it does delve into what some feel are more advanced topics such as transactions and stored procedures, these receive beginner to intermediate level coverage. In any case, even beginners should have some familiarity with these T-SQL features. Those new to T-SQL or seeking a refresh will find ample discussions of the basics here. This gargantuan book won't get anyone up to speed quickly, but it provides enough detail so that beginners will exit this book as knowledgeable T-SQL users.
Good basic book
Published by Thriftbooks.com User , 15 years ago
I've bought the whole series as you do need a paper based reference with examples to work thru more intricate projects. I would say that I've run into a gap in the series in that there isn't much discussion on what we (*data analyst/programmers) do a lot and that's integrate SQL with MS Office especially Excel. Thin there.
Introduction to SQL Query
Published by Thriftbooks.com User , 15 years ago
I purchased this book as an introduction to writing query scripts for SQL. We've a large database with many fields and I needed to know how to appropriately join and relate information in a well constructed manner. This book provides starter SQL queries in addition to explaining the foundation of databases (creating, adjusting, queries etc) The query information provided a more descriptive environment than what I had found on the web. A good beginner guide!
ThriftBooks sells millions of used books at the lowest everyday prices. We personally assess every book's quality and offer rare, out-of-print treasures. We deliver the joy of reading in recyclable packaging with free standard shipping on US orders over $15. ThriftBooks.com. Read more. Spend less.