Book description
Learn SQL the fun and easy way – no programming experience needed!
SQL For Dummies, 7th Edition, shows programmers and web developers how to use SQL to build relational databases and get valuable information from them. This book covers the core features of the SQL language. Topics covered include how to use SQL to structure a DBMS and implement a database design; secure a database; and retrieve information from a database. This edition will be revised to reflect the new enhancements of SQL/XML:2008.
The latest update of the perennial bestselling SQL For Dummies, which has sold more than 210,000 units in six editions.
SQL is the most popular database language in the world
Covers creating, accessing, manipulating, maintaining, and storing information in relational database management systems (DBMS) such as Access, Oracle, SQL Server, and MySQL.
Includes new content on using SQL with XML to power data-driven web sites and using SQL with Access 2010
Whether you're daunted by database development or a system admin star, SQL For Dummies, 7th Dummies will have you working your web site in no time at all.
Table of contents
- Copyright
- About The Author
- Author's Acknowledgments
- Publisher's Acknowledgments
- Introduction
-
I. Basic Concepts
-
1. Relational Database Fundamentals
- 1.1. Keeping Track of Things
- 1.2. What Is a Database?
- 1.3. Database Size and Complexity
- 1.4. What Is a Database Management System?
- 1.5. Flat Files
- 1.6. Database Models
- 1.7. Database Design Considerations
-
2. SQL Fundamentals
- 2.1. What SQL Is and Isn't
- 2.2. A (Very) Little History
- 2.3. SQL Statements
- 2.4. Reserved Words
- 2.5. Data Types
- 2.6. Null Values
- 2.7. Constraints
- 2.8. Using SQL in a Client/Server System
- 2.9. Using SQL on the Internet or an Intranet
-
3. The Components of SQL
- 3.1. Data Definition Language
-
3.2. Data Manipulation Language
-
3.2.1. Value expressions
- 3.2.1.1. Numeric value expressions
- 3.2.1.2. String value expressions
- 3.2.1.3. Datetime and interval value expressions
- 3.2.1.4. Boolean value expressions
- 3.2.1.5. User-defined type value expressions
- 3.2.1.6. Row value expressions
- 3.2.1.7. Collection value expressions
- 3.2.1.8. Reference value expressions
- 3.2.2. Predicates
- 3.2.3. Logical connectives
- 3.2.4. Set functions
- 3.2.5. Subqueries
-
3.2.1. Value expressions
- 3.3. Data Control Language
-
1. Relational Database Fundamentals
-
II. Using SQL to Build Databases
- 4. Building and Maintaining a Simple Database Structure
- 5. Building a Multitable Relational Database
-
III. Storing and Retrieving Data
- 6. Manipulating Database Data
-
7. Specifying Values
- 7.1. Values
- 7.2. Value Expressions
-
7.3. Functions
- 7.3.1. Summarizing by using set functions
-
7.3.2. Value functions
- 7.3.2.1. String value functions
-
7.3.2.2. Numeric value functions
- 7.3.2.2.1. POSITION
- 7.3.2.2.2. OCCURRENCES_REGEX
- 7.3.2.2.3. POSITION_REGEX
- 7.3.2.2.4. EXTRACT
- 7.3.2.2.5. CHARACTER_LENGTH
- 7.3.2.2.6. OCTET_LENGTH
- 7.3.2.2.7. CARDINALITY
- 7.3.2.2.8. ABS
- 7.3.2.2.9. MOD
- 7.3.2.2.10. LN
- 7.3.2.2.11. EXP
- 7.3.2.2.12. POWER
- 7.3.2.2.13. SQRT
- 7.3.2.2.14. FLOOR
- 7.3.2.2.15. CEIL or CEILING
- 7.3.2.2.16. WIDTH_BUCKET
- 7.3.2.3. Datetime value functions
- 7.3.2.4. Interval value functions
- 8. Using Advanced SQL Value Expressions
- 9. Zeroing In on the Data You Want
- 10. Using Relational Operators
- 11. Delving Deep with Nested Queries
- 12. Recursive Queries
-
IV. Controlling Operations
- 13. Providing Database Security
-
14. Protecting Data
- 14.1. Threats to Data Integrity
- 14.2. Reducing Vulnerability to Data Corruption
- 14.3. Constraints Within Transactions
- 15. Using SQL within Applications
-
V. Taking SQL to the Real World
- 16. Accessing Data with ODBC and JDBC
- 17. Operating on XML Data with SQL
-
VI. Advanced Topics
- 18. Stepping through a Dataset with Cursors
- 19. Adding Procedural Capabilities with Persistent Stored Modules
- 20. Handling Errors
- 21. Triggers
-
VII. The Part of Tens
-
22. Ten Common Mistakes
- 22.1. Assuming That Your Clients Know What They Need
- 22.2. Ignoring Project Scope
- 22.3. Considering Only Technical Factors
- 22.4. Not Asking for Client Feedback
- 22.5. Always Using Your Favorite Development Environment
- 22.6. Using Your Favorite System Architecture Exclusively
- 22.7. Designing Database Tables in Isolation
- 22.8. Neglecting Design Reviews
- 22.9. Skipping Beta Testing
- 22.10. Not Documenting Your Process
-
23. Ten Retrieval Tips
- 23.1. Verify the Database Structure
- 23.2. Try Queries on a Test Database
- 23.3. Double-Check Queries That Include Joins
- 23.4. Triple-Check Queries with Subselects
- 23.5. Summarize Data with GROUP BY
- 23.6. Watch GROUP BY Clause Restrictions
- 23.7. Use Parentheses with AND, OR, and NOT
- 23.8. Control Retrieval Privileges
- 23.9. Back Up Your Databases Regularly
- 23.10. Handle Error Conditions Gracefully
-
22. Ten Common Mistakes
- A. SQL:2008 Reserved Words
- Bonus Content: Glossary
Product information
- Title: SQL For Dummies®, 7th Edition
- Author(s):
- Release date: February 2010
- Publisher(s): For Dummies
- ISBN: 9780470557419
You might also like
book
SQL in a Nutshell, 4th Edition
For programmers, analysts, and database administrators, this Nutshell guide is the essential reference for the SQL …
book
SQL For Dummies, 9th Edition
Get ready to make SQL easy! Updated for the latest version of SQL, the new edition …
book
SQL Antipatterns
Bill Karwin has helped thousands of people write better SQL and build stronger relational databases. Now …
book
SQL Cookbook, 2nd Edition
You may know SQL basics, but are you taking advantage of its expressive power? This second …