Book description
Database management. It may sound daunting, but it doesn't have to be, even if you've never programmed before. SQL: Visual QuickStart Guide isn't an exhaustive guide to SQL written for aspiring programming experts. It's simply an invaluable resource for those who want a fast, easy way to harness information living in complex databases.
Because author Chris Fehily assumes no prior programming experience on your part (just a familiarity with your OS's file system), he spends the first few chapters laying out the basics, including clear explanations of the relational database model and SQL syntax. Then he jumps into step-by-step tasks designed to get you comfortable using SQL right away. You'll learn how to use SQL's most popular statements and commands to maintain, retrieve, and analyze database information, and to create and edit database objects. Each visually oriented task features the actual code and plenty of screenshots to keep you on track. Fehily takes a software-independent approach to teaching SQL, but includes tips for specific database software. You may not be a programming expert, but with SQL: VQS, who will be able to tell?
Table of contents
- Copyright
- Special Thanks to:
- Introduction
- DBMS Specifics
- The Relational Model
- SQL Basics
-
Retrieving Data From a Table
- Retrieving Columns with SELECT and FROM
- Creating Column Aliases with AS
- Eliminating Duplicate Rows with DISTINCT
- Sorting Rows with ORDER BY
- Filtering Rows with WHERE
- Combining and Negating Conditions with AND, OR, and NOT
- Matching Patterns with LIKE
- Range Filtering with BETWEEN
- List Filtering with IN
- Testing for Nulls with IS NULL
-
Operators and Functions
- Creating Derived Columns
- Performing Arithmetic Operations
- Determining the Order of Evaluation
- Concatenating Strings with ||
- Extracting a Substring with SUBSTRING()
- Changing String Case with UPPER() and LOWER()
- Trimming Characters with TRIM()
- Finding the Length of a String with CHARACTER_LENGTH()
- Finding Substrings with POSITION()
- Performing Date and Time Operations
- Getting the Current Date and Time
- Getting User Information
- Converting Data Types with CAST()
- Evaluating Conditional Values with CASE
- Checking for Nulls with COALESCE()
- Comparing Expressions with NULLIF()
- Summarizing and Grouping Data
-
Retrieving Data From Multiple Tables
- Qualifying Column Names
- Creating Table Aliases with AS
- Using Joins
- Creating Joins with JOIN or WHERE
- Creating a Cross Join with CROSS JOIN
- Creating a Natural Join with NATURAL JOIN
- Creating an Inner Join with INNER JOIN
- Creating Outer Joins with OUTER JOIN
- Creating a Self-Join
- Combining Rows with UNION
- Finding Common Rows with INTERSECT
- Finding Different Rows with EXCEPT
-
Subqueries
- Understanding Subqueries
- Subquery Syntax
- Subqueries vs. Joins
- Simple and Correlated Subqueries
- Qualifying Column Names in Subqueries
- Nulls in Subqueries
- Using Subqueries as Column Expressions
- Comparing a Subquery Value by Using a Comparison Operator
- Testing Set Membership with IN
- Comparing All Subquery Values with ALL
- Comparing Some Subquery Values with ANY
- Testing Existence with EXISTS
- Comparing Equivalent Queries
- Inserting, Updating, and Deleting Rows
-
Creating, Altering, and Dropping Tables
- Creating Tables
- Understanding Constraints
- Creating a New Table with CREATE TABLE
- Forbidding Nulls with NOT NULL
- Specifying a Default Value with DEFAULT
- Specifying a Primary Key with PRIMARY KEY
- Specifying a Foreign Key with FOREIGN KEY
- Forcing Unique Values with UNIQUE
- Adding a Check Constraint with CHECK
- Creating a Temporary Table with CREATE TEMPORARY TABLE
- Creating a New Table from an Existing One with SELECT INTO
- Altering a Table with ALTER TABLE
- Dropping a Table with DROP TABLE
- Indexes
- Views
- Transactions
Product information
- Title: SQL: Visual QuickStart Guide
- Author(s):
- Release date: July 2002
- Publisher(s): Peachpit Press
- ISBN: 9780321118035
You might also like
book
SQL: Visual Quickstart Guide, Second Edition
As dynamic, database-driven Web sites become the standard, more and more nonprogrammers just like yourself are …
book
SQL: Visual QuickStart Guide, Third Edition
SQL is a standard interactive and programming language for querying and modifying data and managing databases. …
book
Discovering SQL: A Hands-On Guide for Beginners
Teaching the SQL skills that businesses demand when hiring programmers If you're a SQL beginner, you …
book
SQL Server T-SQL Recipes, Fourth Edition
SQL Server T-SQL Recipes is an example-based guide to the Transact-SQL language that is at the …