Items related to SQL Fundamentals

Patrick, John J. SQL Fundamentals ISBN 13: 9780130960160

SQL Fundamentals - Softcover

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

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.

"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

From the Back Cover:


9601F-1

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 for IT pros at the University of California, Berkeley, 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. SQL Fundamentals covers all this and more:

  • Simple queries that retrieve information from a single table
  • Creating tables and views to divide a complex process into a series of single steps
  • Summarizing your data
  • Inner joins, outer joins, unions, self joins, cross joins, and subqueries
  • Writing SQL queries that are easily understood, verified, modified, and extended

Want better access to business data? Want to make your data more accessible to others? SQL Fundamentals delivers the practical techniques and examples you need - on the database platforms you already use! If you want to fully use the information in your database, then read this book!

CD-ROM INCLUDED

The accompanying CD-ROM contains a library of Access databases and the code for building Oracle databases. All the tables used in the book are furnished in both Oracle and Access format. A website provides additional technical support to assure that all the code is completely correct and works with the latest versions of both Oracle and Access.

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

  • PublisherPrentice Hall
  • Publication date1999
  • ISBN 10 0130960160
  • ISBN 13 9780130960160
  • BindingPaperback
  • Edition number1
  • Number of pages544
  • Rating

Buy Used

Condition: Good
Item in good condition. Textbooks... Learn more about this copy

Shipping: FREE
Within U.S.A.

Destination, rates & speeds

Add to Basket

Top Search Results from the AbeBooks Marketplace

Stock Image

Patrick, John J.
Published by Prentice Hall Ptr (1999)
ISBN 10: 0130960160 ISBN 13: 9780130960160
Used Softcover Quantity: 1
Seller:
SecondSale
(Montgomery, IL, U.S.A.)

Book Description Condition: Good. Item in good condition. Textbooks may not include supplemental items i.e. CDs, access codes etc. Seller Inventory # 00057696638

More information about this seller | Contact seller

Buy Used
£ 5.45
Convert currency

Add to Basket

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

Patrick, John J.
Published by Prentice Hall (1999)
ISBN 10: 0130960160 ISBN 13: 9780130960160
Used Paperback Quantity: 1
Seller:
ThriftBooks-Atlanta
(AUSTELL, GA, U.S.A.)

Book Description Paperback. Condition: Good. No Jacket. Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less 2.38. Seller Inventory # G0130960160I3N00

More information about this seller | Contact seller

Buy Used
£ 5.48
Convert currency

Add to Basket

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

Patrick, John J.
Published by Prentice Hall (1999)
ISBN 10: 0130960160 ISBN 13: 9780130960160
Used Paperback Quantity: 1
Seller:
ThriftBooks-Dallas
(Dallas, TX, U.S.A.)

Book Description Paperback. Condition: Good. No Jacket. Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less 2.38. Seller Inventory # G0130960160I3N00

More information about this seller | Contact seller

Buy Used
£ 5.48
Convert currency

Add to Basket

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

Patrick, John J.
Published by Prentice Hall (1999)
ISBN 10: 0130960160 ISBN 13: 9780130960160
Used Paperback Quantity: 1
Seller:
ThriftBooks-Dallas
(Dallas, TX, U.S.A.)

Book Description Paperback. Condition: Fair. No Jacket. Readable copy. Pages may have considerable notes/highlighting. ~ ThriftBooks: Read More, Spend Less 2.38. Seller Inventory # G0130960160I5N00

More information about this seller | Contact seller

Buy Used
£ 5.48
Convert currency

Add to Basket

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

Patrick, John J.
Published by Prentice Hall Ptr (1999)
ISBN 10: 0130960160 ISBN 13: 9780130960160
Used Softcover Quantity: 1
Seller:
MusicMagpie
(Stockport, United Kingdom)

Book Description Condition: Very Good. 1710253844. 3/12/2024 2:30:44 PM. Seller Inventory # U9780130960160

More information about this seller | Contact seller

Buy Used
£ 10.29
Convert currency

Add to Basket

Shipping: £ 5.49
From United Kingdom to U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John J.
Published by - (1999)
ISBN 10: 0130960160 ISBN 13: 9780130960160
Used Paperback Quantity: 1
Seller:
AwesomeBooks
(Wallingford, United Kingdom)

Book Description Paperback. Condition: Very Good. SQL Fundamentals This book is in very good condition and will be shipped within 24 hours of ordering. The cover may have some limited signs of wear but the pages are clean, intact and the spine remains undamaged. This book has clearly been well maintained and looked after thus far. Money back guarantee if you are not satisfied. See all our books here, order more than 1 book and get discounted shipping. Seller Inventory # 7719-9780130960160

More information about this seller | Contact seller

Buy Used
£ 14.19
Convert currency

Add to Basket

Shipping: £ 4.49
From United Kingdom to U.S.A.
Destination, rates & speeds
Stock Image

Patrick, John J.
Published by - - (1999)
ISBN 10: 0130960160 ISBN 13: 9780130960160
Used Paperback Quantity: 1
Seller:
Bahamut Media
(Reading, United Kingdom)

Book Description Paperback. Condition: Very Good. This book is in very good condition and will be shipped within 24 hours of ordering. The cover may have some limited signs of wear but the pages are clean, intact and the spine remains undamaged. This book has clearly been well maintained and looked after thus far. Money back guarantee if you are not satisfied. See all our books here, order more than 1 book and get discounted shipping. Seller Inventory # 6545-9780130960160

More information about this seller | Contact seller

Buy Used
£ 14.17
Convert currency

Add to Basket

Shipping: £ 6.98
From United Kingdom to U.S.A.
Destination, rates & speeds