Items related to SQL Fundamentals

Patrick, John SQL Fundamentals ISBN 13: 9780137126026

SQL Fundamentals - Softcover

 
9780137126026: SQL Fundamentals
View all copies of this ISBN edition:
 
 

SQL for the Real World

 

Don’t just learn “generic” SQL. Learn SQL to get results with the world’s top database platforms–Oracle for the enterprise and Microsoft Access for the desktop. Based on John Patrick’s hands-on SQL course at the University of California, Berkeley Extension, this book shows exactly how to retrieve the data you want, when you need it, in any application–from ad hoc reports to the data warehouse. Thoroughly updated for the newest versions of Oracle, Access, and the SQL standard, this book contains more exercises, techniques, and solutions than ever before. You’ll learn exactly how to write SQL queries that are easy to understand, verify, modify, and extend–even if you’ve never worked with databases before.

 

SQL Fundamentals,Third Edition, teaches you how to

  • Build simple statements to retrieve, store, or modify data
  • Craft complex queries that draw information from multiple tables
  • Sort and summarize your data just the way you want it
  • Create and edit your own tables
  • Protect the integrity of your data
  • Create more efficient, high-performance queries
  • Work with unions, subqueries, self joins, cross joins, inner joins, and outer joins
  • Use the Oracle Data Dictionary

About the Web Site

 

The accompanying Web site, https://www.box.com/shared/ylbckg2fn0 , contains all the SQL code and tables from the book, including the full databases for several versions of Access and code for building the corresponding Oracle databases. It also provides solutions to many of the book’s problems and an open area for discussions with the author and other readers.

"synopsis" may belong to another edition of this title.

From the Publisher:
Summary and table of contents
The book covers: the fundamental concepts and ideas of SQL used for creating ad-hoc reports. It covers the way these concepts are implemented in SQL products. Oracle and Access are the two examples used. Access for small data bases and Oracle for large data bases.

CONTENTS

1. Storing Information in Tables.

Introduction. What is SQL? What is a Relational Database and why would you use one? Why learn SQL? What is in this book? The parts of a table. Data is stored in tables. A row represents an object and the information about it. A column represents one type of information. A cell is the smallest part of a table. Each cell should express just one thing. Primary key columns identify each row. Most tables are tall and thin. Examples of tables. An example of a table in Oracle and Access. Some database design decisions. The Lunches database. Oracle and Access. Obtaining Oracle and Access. Using Oracle. Using Access.

2. Getting Information from a Table.

The Select statement. The goal: get a few columns and rows from a table. Overview of the Select statement. The Select clause. Overview of the Select clause. Using the Select clause to get a list of columns. Using the Select clause to get all the columns. Using the Select clause to get the distinct values in one column. Using the Select clause to get the distinct values of several columns. The Where clause. Overview of the Where clause. Using an Equal condition in the Where clause. Using a Less Than condition in the Where clause. Using a Not Equal To condition in the Where clause. Using the In condition in the Where clause. Using the Between condition in the Where clause. Using the Like condition in the Where clause. Using the Is Null condition in the Where clause. Using a compound condition in the Where clause. Using a complex compound condition in the Where clause. Using NOT with IN, BETWEEN, LIKE, and IS NULL. The Order By clause. Overview of the Order By clause. Sorting the rows of several columns in ascending order. Sorting the rows of several columns with some in ascending order and others in descending order. Other techniques. Using a lookup table to find the meanings of codes. The Whole Process. The whole process—so far. Punctuation matters. Summary. Exercises.

3. Saving Your Results.

Saving your results in a new table or view. Creating a new table from the results of a Select statement. Creating a new view from the results of a Select statement. The similarities and differences between a table and a view. Deleting a table or a view. One view can be built on top of another view. Preventative deletes. Modifying the data in a table. Adding one new row to a table. Adding many new rows to a table with a Select statement. Changing data in the rows already in a table. Deleting rows from a table. Using the GUI environment to change the table data in Access. Modifying data through a view. Changing data through a view. Example of changing data through a view. Views using With Check Option. Finding information about tables and views. The Data Dictionary. How to find the names of all the tables. How to find the names of all the views. How to find the Select statement that defines a view. How to find the names of the columns in a table or view. How to find the primary key of a table. Summary. Exercises.

4. Creating Your Own Tables.

Creating tables. The Create Table command. Datatypes in Oracle and Access. Sequences. Changing tables. Adding a primary key to a table. Deleting a primary key from a table. Adding a new column to a table. Deleting a column from a table. Making other changes to tables. Tables with duplicate rows. Finding more information about tables in the Data Dictionary. Finding information about columns. Finding information about sequences. Finding information about your database objects. Finding where to find things in the Data Dictionary. Formats. Date formats. Displaying formatted dates. Entering formatted dates. Summary. Exercises.

5. Row Functions.

Introduction to row functions. Getting data directly from the beginning table. Understanding a row function. An example of a row function. Using a series of steps with a row function. Number functions. Functions on numbers. Testing row functions. Text functions. Functions on text. Combining the first and last names. Capitalization. Date functions. Function on dates. An example of a date function. Other functions. Other functions. Using functions to change the datatype. Using functions to change nulls to other values. Using functions to identify the user and the date. Starting Expression Builder in Access. Creating patterns of numbers and dates. Listing the multiples of three. Listing the prime numbers. Listing all the days of one week. Summary. Exercises.

6. Summarizing Data.

Introduction to the column functions. Summary of all the data in a column. Summary of groups of data within a column. A list of the column functions. Finding the maximum and minimum values. Using a Where clause with a column function. Finding the rows that have the maximum or minimum value. Two types of counting: counting rows and counting data. Counting to zero. Counting the number of distinct values in a column. The Sum and Average functions. The problem with addition and how to solve it. A practical example. Dividing a table into groups of rows and summarizing each group. The Group By clause. Groups formed on two or more columns. Summarized data cannot mix with non-summarized data in the same Select statement. Null groups in a single grouping column. Null groups in two or more grouping columns. An example. The Having clause. Occasions when a Where clause and a Having clause can do the same thing. Solutions to some problems. Counting the number of nulls in a column. Using DISTINCT more than once in the same query. Summary. Exercises.

7. Inner Joins.

Introduction to joins. A query can use data from several tables. The best approach is to join two tables at a time. Inner joins of two tables. A one-to-one relationship. A many-to-one relationship. A one-to-many relationship. A many-to-many relationship. Dropping unmatched rows. Dropping rows with a null in the matching column. Variations of the join condition. Using two or more matching columns. Using Between to match on a range of values. Using Greater Than in the join condition. Inner joins of three or more tables. Joining three tables with one Select statement. Joining three tables with a series of steps. The new syntax for an inner join. Writing the join condition in the From clause. Joining three tables with the new syntax in one Select statement. Joining three tables with the new syntax in a series of steps. Other issues. Inner joins are symmetric—the order in which the tables are joined does not matter. Some tables should always be joined to other tables in one particular way. A view can standardize the way tables are joined. Sometimes tables can be joined to each other in several different ways. Summary. Exercises.

8. Outer Joins and Unions.

Outer joins. Outer joins are derived from inner joins. The three types of outer joins. The left outer join. The right outer join. The full outer join. An introduction to unions. An example of a union of two tables with matching columns. A full outer join in sorted order. The symmetry of full outer joins. Unions. The difference between a union and a join. Union all. Using a literal in a union to identify the source of the data. Automatic datatype conversion in a union. Using datatype conversion functions in a union. A union of two tables with different numbers and types of columns. Applications of unions (divide and conquer). Determining whether two tables are equal. Attaching messages for warnings and errors. Overriding several rows of data in a table. Dividing data into different columns. Applying two functions to different parts of the data. Set Intersection and Set Difference in Oracle. Set Intersection. Set Difference. Summary. Exercises.

9. Self Joins, Cross Joins, and Subqueries.

Self joins. Why join a table with itself? An example of a self join. Generating the numbers from 0 to 99. Generating the numbers from 1 to 10,000. Numbering the lines of a report in Oracle and Access. Numbering the lines of a report in standard SQL. Numbering the lines of each group. Cross joins. What is a cross join? Inner joins are derived from cross joins. The properties of an inner and outer join are derived from the properties of a cross join. An error in the join condition can appear as a cross join. Subqueries. Introduction to subqueries. Subqueries that result in a list of values. Subqueries that result in a single value. Avoiding NOT IN with nulls. Many subqueries can be written with a join. Finding the differences between two tables. Summary. Exercises.

10. Advanced Queries.

The Decode and IIF functions. The Decode function in Oracle. The Immediate If (IIF) function in Access. Attaching messages to rows. Overriding several rows of a table. Dividing data into different columns. Applying two functions to different parts of the data. Using the environment in which SQL runs. Parameter queries in Oracle. Parameter queries in A

About the Author:
John J. Patrick is a computer consultant and software developer specializing in relational database technology. He teaches SQL Fundamentals and other database courses at the University of California, Berkeley Extension, and has more than twenty years of experience in software development at Bank of America, Chevron, Kaiser Permanente, and other leading firms.

"About this title" may belong to another edition of this title.

  • PublisherPearson
  • Publication date2008
  • ISBN 10 0137126026
  • ISBN 13 9780137126026
  • BindingPaperback
  • Edition number3
  • Number of pages832
  • Rating

Top Search Results from the AbeBooks Marketplace

Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Paperback Quantity: 1
Seller:
Wizard Books
(Long Beach, CA, U.S.A.)

Book Description Paperback. Condition: new. New. Seller Inventory # Wizard0137126026

More information about this seller | Contact seller

Buy New
£ 45.85
Convert currency

Add to Basket

Shipping: £ 2.83
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Paperback Quantity: 1
Seller:
GoldBooks
(Denver, CO, U.S.A.)

Book Description Paperback. Condition: new. New Copy. Customer Service Guaranteed. Seller Inventory # think0137126026

More information about this seller | Contact seller

Buy New
£ 49.73
Convert currency

Add to Basket

Shipping: £ 3.44
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Softcover Quantity: 1
Seller:
Front Cover Books
(Denver, CO, U.S.A.)

Book Description Condition: new. Seller Inventory # FrontCover0137126026

More information about this seller | Contact seller

Buy New
£ 49.96
Convert currency

Add to Basket

Shipping: £ 3.48
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Paperback Quantity: 1
Seller:
Grumpys Fine Books
(Tijeras, NM, U.S.A.)

Book Description Paperback. Condition: new. Prompt service guaranteed. Seller Inventory # Clean0137126026

More information about this seller | Contact seller

Buy New
£ 50.33
Convert currency

Add to Basket

Shipping: £ 3.44
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Softcover Quantity: 1
Seller:
Hafa Adai Books
(Moncks Corner, SC, U.S.A.)

Book Description Condition: new. Seller Inventory # Hafa_fresh_0137126026

More information about this seller | Contact seller

Buy New
£ 50.61
Convert currency

Add to Basket

Shipping: £ 3.19
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Paperback Quantity: 1
Seller:
GoldenWavesOfBooks
(Fayetteville, TX, U.S.A.)

Book Description Paperback. Condition: new. New. Fast Shipping and good customer service. Seller Inventory # Holz_New_0137126026

More information about this seller | Contact seller

Buy New
£ 52.08
Convert currency

Add to Basket

Shipping: £ 3.23
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Softcover Quantity: 1
Seller:
LibraryMercantile
(Humble, TX, U.S.A.)

Book Description Condition: new. Seller Inventory # newMercantile_0137126026

More information about this seller | Contact seller

Buy New
£ 53.53
Convert currency

Add to Basket

Shipping: £ 2.43
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Paperback Quantity: 1
Seller:
GoldenDragon
(Houston, TX, U.S.A.)

Book Description Paperback. Condition: new. Buy for Great customer experience. Seller Inventory # GoldenDragon0137126026

More information about this seller | Contact seller

Buy New
£ 54.11
Convert currency

Add to Basket

Shipping: £ 2.63
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Paperback Quantity: 1
Seller:
Textbooks_Source
(Columbia, MO, U.S.A.)

Book Description Paperback. Condition: New. 3rd Edition. Ships in a BOX from Central Missouri! UPS shipping for most packages, (Priority Mail for AK/HI/APO/PO Boxes). Seller Inventory # 000868138N

More information about this seller | Contact seller

Buy New
£ 53.66
Convert currency

Add to Basket

Shipping: £ 3.23
Within U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John
Published by Pearson (2008)
ISBN 10: 0137126026 ISBN 13: 9780137126026
New Softcover Quantity: 1
Seller:
Books Unplugged
(Amherst, NY, U.S.A.)

Book Description Condition: New. Buy with confidence! Book is in new, never-used condition. Seller Inventory # bk0137126026xvz189zvxnew

More information about this seller | Contact seller

Buy New
£ 69.83
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds

There are more copies of this book

View all search results for this book