Mastering Oracle SQL 2nd Edition Mishra pdf download
Mastering Oracle SQL 2nd Edition Mishra pdf download
or textbooks at https://ebookultra.com
https://ebookultra.com/download/mastering-oracle-sql-2nd-
edition-mishra/
https://ebookultra.com/download/mastering-oracle-sql-1st-edition-
sanjay-mishra/
https://ebookultra.com/download/oracle-sql-plus-the-definitive-
guide-2nd-ed-edition-jonathan-gennick/
https://ebookultra.com/download/pro-oracle-sql-expert-s-voice-in-
oracle-1st-edition-karen-morton/
https://ebookultra.com/download/mastering-oracle-scheduler-in-
oracle-11g-databases-1st-edition-ronald-rood/
Oracle PL SQL Programming Sixth Edition Steven Feuerstein
https://ebookultra.com/download/oracle-pl-sql-programming-sixth-
edition-steven-feuerstein/
https://ebookultra.com/download/beginning-oracle-sql-3rd-edition-lex-
de-haan/
https://ebookultra.com/download/oracle-sql-loader-the-definitive-
guide-1st-edition-jonathan-gennick/
https://ebookultra.com/download/oracle-sql-tuning-pocket-
reference-1st-ed-edition-mark-gurry/
https://ebookultra.com/download/exper-t-oracle-sql-optimization-
deployment-and-statistics-1st-edition-tony-hasler-auth/
Mastering Oracle SQL 2nd Edition Mishra Digital
Instant Download
Author(s): Mishra, Sanjay;Beaulieu, Alan
ISBN(s): 9780596006327, 0596006322
Edition: 2
File Details: PDF, 3.38 MB
Year: 2004
Language: english
Mastering Oracle SQL
Other Oracle and SQL resources from O’Reilly
Related titles Oracle in a Nutshell SQL Tuning
SQL Pocket Guide Oracle PL/SQL Programming
Oracle SQL*Plus: The Defini- Oracle Essentials: Oracle 9i,
tive Guide Oracle9, and Oracle8i
Oracle PL/SQL Language Oracle SQL*Plus Pocket
Pocket Reference Reference
TOAD Pocket Reference for Learning Oracle PL/SQL
Oracle
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (safari.oreilly.com). For more information, contact our corporate/insti-
tutional sales department: (800) 998-9938 or corporate@oreilly.com.
Printing History:
April 2002: First Edition.
July 2004: Second Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Mastering Oracle SQL, the image of lantern flies, and related trade dress are
trademarks of O’Reilly Media, Inc.
Oracle® and all Oracle-based trademarks and logos are trademarks or registered trademarks of Oracle
Corporation in the United States and other countries. O’Reilly Media, Inc., is independent of Oracle
Corporation.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors
assume no responsibility for errors or omissions, or for damages resulting from the use of the
information contained herein.
ISBN-10: 0-596-00632-2
ISBN-13: 978-0-596-00632-7
[M] [7/07]
I dedicate this book to my father.
I wish he were alive to see this book.
—Sanjay Mishra
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Introduction to SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What Is SQL? 1
A Brief History of SQL 3
A Simple Database 4
DML Statements 5
So Why Are There 17 More Chapters? 17
3. Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
What Is a Join Query? 31
Join Conditions 32
Types of Joins 37
Joins and Subqueries 53
DML Statements on a Join View 53
4. Group Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Aggregate Functions 62
The GROUP BY Clause 66
The HAVING Clause 74
Nested Group Operations 77
vii
5. Subqueries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
What Is a Subquery? 80
Noncorrelated Subqueries 81
Correlated Subqueries 88
Inline Views 91
Subquery Case Study: The Top N Performers 106
Table of Contents | ix
16. XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
What Is XML? 365
Storing XML Data 366
Generating XML Documents 382
Summary 387
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
x | Table of Contents
Preface
SQL is the language for accessing a relational database. SQL provides a set of state-
ments for storing and retrieving data to and from a relational database. It has gained
steadily in popularity ever since the first relational database was unleashed upon the
world. Other languages have been put forth, but SQL is now accepted as the stan-
dard language for almost all relational database implementations, including Oracle.
SQL is different from other programming languages because it is nonprocedural.
Unlike programs in other languages, where you specify the sequence of steps to be
performed, a SQL program (more appropriately called a SQL statement) only
expresses the desired result. The responsibility for determining how the data will be
processed to generate the desired result is left to the database management system.
The nonprocedural nature of SQL makes it easier to access data in application
programs.
If you are using an Oracle database, SQL is the interface you use to access the data
stored in your database. SQL allows you to create database structures such as tables
(to store your data), views, and indexes. SQL allows you to insert data into the data-
base, and to retrieve that stored data in a desired format (for example, you might sort
it). Finally, SQL allows you to modify, delete, and otherwise manipulate your stored
data. SQL is the key to everything you do with the database. It’s important to know
how to get the most out of that interface. Mastery over the SQL language is one of
the most vital requirements of a database developer or database administrator.
xi
xii | Preface
Preface | xiii
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com