Book description
Anyone who interacts with today's modern databases needs to know SQL (Structured Query Language), the standard language for generating, manipulating, and retrieving database information. In recent years, the dramatic rise in the popularity of relational databases and multi-user databases has fueled a healthy demand for application developers and others who can write SQL code efficiently and correctly.
If you're new to databases, or need a SQL refresher, Learning SQL on SQL Server 2005 is an ideal step-by-step introduction to this database query tool, with everything you need for programming SQL using Microsoft's SQL Server 2005-one of the most powerful and popular database engines used today. Plenty of books explain database theory. This guide lets you apply the theory as you learn SQL. You don't need prior database knowledge, or even prior computer knowledge.
Based on a popular university-level course designed by authors Sikha Saha Bagui and Richard Walsh Earp, Learning SQL on SQL Server 2005 starts with very simple SQL concepts, and slowly builds into more complex query development. Every topic, concept, and idea comes with examples of code and output, along with exercises to help you gain proficiency in SQL and SQL Server 2005. With this book, you'll learn:
- Beginning SQL commands, such as how and where to type an SQL query, and how to create, populate, alter and delete tables
- How to customize SQL Server 2005's settings and about SQL Server 2005's functions
- About joins, a common database mechanism for combining tables
- Query development, the use of views and other derived structures, and simple set operations
- Subqueries, aggregate functions and correlated subqueries, as well as indexes and constraints that can be added to tables in SQL Server 2005
Whether you're an undergraduate computer science or MIS student, a self-learner who has access to the new Microsoft database, or work for your company's IT department, Learning SQL on SQL Server 2005 will get you up to speed on SQL in no time.
Publisher resources
Table of contents
- Learning SQL on SQL Server 2005
- Dedication
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- A Note Regarding Supplemental Files
- Preface
-
1. Starting Microsoft SQL Server 2005
- Starting Microsoft SQL Server 2005 and SQL Server 2005’s Management Studio
- Creating a Database in Microsoft SQL Server 2005
- The Query Editor
- Creating Tables Using the Load Script
- Viewing Table Definitions
- Modifying Table Definitions
- Viewing Table Data
- Deleting a Table
- Deleting a Database
- Entering a SQL Query or Statement
- Parsing a Query
- Executing a Query
- Saving a Query
- Displaying the Results
- Stopping Execution of a Long Query
- Printing the Query and Results
- Customizing SQL Server 2005
- Summary
- Review Questions
- Exercises
-
2. Beginning SQL Commands in SQL Server
- Displaying Data with the SELECT Statement
- Displaying or SELECTing Rows or Tuples from a Table
- The COUNT Function
- The ROWCOUNT Function
- Using Aliases
- Synonyms
- Adding Comments to SQL Statements
- Some Conventions for Writing SQL Statements
- A Few Notes About SQL Server 2005 Syntax
- Summary
- Review Questions
- Exercises
-
3. Creating, Populating, Altering, and Deleting Tables
- Data Types in SQL Server 2005
- Creating a Table
- Inserting Values into a Table
- The UPDATE Command
- The ALTER TABLE Command
- The DELETE Command
- Deleting a Table
- Summary
- Review Questions
- Exercises
- References
- 4. Joins
- 5. Functions
- 6. Query Development and Derived Structures
-
7. Set Operations
- Introducing Set Operations
- The UNION Operation
- The UNION ALL Operation
- Handling UNION and UNION ALL Situations with an Unequal Number of Columns
- The IN and NOT..IN Predicates
- The Difference Operation
- The Union and the Join
- A UNION Used to Implement a Full Outer Join
- Summary
- Review Questions
- Exercises
- Optional Exercise
- 8. Joins Versus Subqueries
- 9. Aggregation and GROUP BY
- 10. Correlated Subqueries
- 11. Indexes and Constraints on Tables
- A. The Student Database and Other Tables Used in This Book
- B. Script Used to Create the Student_course Database
- Glossary of Terms
- Important Commands and Functions
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Copyright
Product information
- Title: Learning SQL on SQL Server 2005
- Author(s):
- Release date: April 2006
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449390891
You might also like
book
Microsoft® SQL Server 2012 Unleashed
Buy the print version of¿ and get the eBook version for free! eBook version includes chapters …
book
Mastering SQL Server® 2008
As Microsoft's bestselling database manager, SQL Server is highly flexible and customizable, and has excellent support—the …
book
Dynamic SQL: Applications, Performance, and Security
This book is an introduction and deep-dive into the many uses of dynamic SQL in Microsoft …
book
Pro PowerShell for Database Developers
helps you master PowerShell application development by continuing where other books leave off. There are no …