did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780201773637

Learning SQL : A Step-by-Step Guide Using Oracle

by ;
  • ISBN13:

    9780201773637

  • ISBN10:

    0201773635

  • Format: Paperback
  • Copyright: 2003-01-01
  • Publisher: Addison Wesley
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $58.00

Summary

Starts with very simple Oracle SQL concepts and slowly builds into more complex query development and PL/SQL. Covers SQL as it is invoked via SQL Plus, a command-line system to launch interactive queries. Provides an appendix for UNIX users of Oracle. Softcover.

Table of Contents

Prefacep. xiii
The Software Engineering Process and Relational Databasesp. 1
What Is a Database?p. 1
Database Modelsp. 2
The Hierarchical Modelp. 3
Other Cardinalitiesp. 4
Connecting Recordsp. 5
The Network Modelp. 6
Connecting Recordsp. 7
Contemporary Databases: The Relational Modelp. 7
The First Normal Formp. 9
The Second Normal Formp. 11
The Third Normal Formp. 14
What Is the Software Engineering Process?p. 16
Referencesp. 18
Getting Started with Oracle 8 in the Windows Environmentp. 19
Getting Started on Oraclep. 19
Signing onto Oraclep. 20
Setting Your System Parametersp. 22
Setting the PAUSE Parameterp. 22
Setting the Prompt Parameterp. 22
Showing Timing Statisticsp. 24
Viewing a List of System Parametersp. 24
Printing and Using HOSTp. 24
Signing Off from Oraclep. 26
Using Oracle Commandsp. 27
Using SELECT Statement Syntaxp. 28
Re-Executing a Commandp. 28
Accessing Tablesp. 28
Adding Comments in Statementsp. 29
A Few More Examples and Further Comments about Casep. 30
Editing SQL Statementsp. 30
Editing SQL Statements Using an Editorp. 31
Saving a Queryp. 32
Running a Stored Queryp. 32
Naming Statementsp. 33
Using the GET Commandp. 33
Editing SQL Statements Using SQLPLUSp. 33
Using the CHANGE Commandp. 34
Using the LIST Commandp. 34
Using Other Commandsp. 35
Displaying the "Student-Course" Databasep. 36
Displaying the Course Table (the Course Relation)p. 37
Creating a Synonym for the Course Tablep. 38
Deleting a Synonymp. 38
Introducing the Oracle Data Dictionaryp. 39
Using DESCp. 41
Employing a Convention for Writing SQL Statementsp. 42
Chapter 1 Exercisesp. 42
More "Beginning" SQL Commandsp. 45
An Extended SELECT Statementp. 45
SELECTing Attributes (Columns)p. 46
Using ORDER BYp. 46
SELECTing Tuples (Rows)p. 47
A Simple CREATE TABLE Commandp. 48
Inserting Values into a Created Tablep. 49
INSERT INTO .. VALUESp. 49
INSERT INTO .. SELECTp. 51
The UPDATE Commandp. 53
The DELETE Commandp. 54
ROLLBACK, COMMIT, and SAVEPOINTp. 55
The ALTER TABLE Commandp. 61
Data Typesp. 61
Number Data Typesp. 61
CHAR Data Typep. 62
VARCHAR2 Data Typep. 62
LONG, RAW, LONG RAW, and BOOLEAN Data Typesp. 62
Large Object (LOB) Data Typesp. 63
Abstract Data Typesp. 63
The DATE Data Type and Type Conversion Functionsp. 64
Entering Four-Digit Yearsp. 67
Chapter 2 Exercisesp. 69
The Cartesian Product, the Join, and Aliasesp. 71
The Cartesian Productp. 71
The Joinp. 73
Theta Joinsp. 74
Qualifiersp. 74
Queries Involving Multiple Tables: Using Table Aliasesp. 74
More on Commentsp. 75
Join Conditions and Commentsp. 76
Outer Joinsp. 78
Column Aliasesp. 79
Scriptingp. 81
COUNT and Rownump. 82
Chapter 3 Exercisesp. 85
Referencesp. 87
Functions and Matching (LIKE)p. 89
The COUNT Functionp. 89
SELECTing and COUNTing with DISTINCTp. 91
Additional Basic Functionsp. 92
More Aggregate Functionsp. 92
The NVL Functionp. 94
String Functionsp. 95
Matching Substrings: Using LIKEp. 100
LIKE as an Existence Matchp. 101
LIKE as a Positioned Match and a Wildcardp. 102
The UPPER and LOWER Functionsp. 103
The Data Dictionary Revisitedp. 104
Chapter 4 Exercisesp. 105
Query Development, Privileges, and Derived Structuresp. 109
Query Developmentp. 110
Using SAVE and EDITp. 110
Deleting a Queryp. 113
Parentheses in SQL Expressionsp. 114
Derived Structuresp. 116
Viewsp. 116
Using the CREATE OR REPLACE VIEW Statementsp. 116
Adding ORDER BY to CREATE OR REPLACE VIEW Statementsp. 118
Developing a Query Using Viewsp. 119
Creating Special View Column Namesp. 120
GRANTing and REVOKEing Privileges on Tables and Viewsp. 121
Query Development and Derived Structuresp. 122
Develop a Query Step by Stepp. 123
Using a Derived Structurep. 126
Make Your Query a Viewp. 126
Create a Temporary Tablep. 127
Use an Inline Viewp. 129
Use a Snapshotp. 130
Chapter 5 Exercisesp. 131
Set Operationsp. 135
Introducing Set Operationsp. 135
Example of a Set Operation in Usep. 136
Example of Using a UNIONp. 136
The IN and NOT..IN Predicatesp. 137
Using INp. 138
Using NOT..INp. 142
The Difference Operationp. 145
Chapter 6 Exercisesp. 150
Optional Exercisep. 152
Joins versus Subqueriesp. 153
The IN Subqueryp. 153
The Subquery as a Joinp. 155
When the Join Cannot Be Turned into a Subqueryp. 156
More Examples Involving Joins and INp. 158
Example 1p. 158
Example 2p. 160
Example 3p. 161
Subqueries with Operatorsp. 162
Chapter 7 Exercisesp. 164
Optional Exercisep. 166
GROUP BY and HAVINGp. 167
Aggregates/Column Functionsp. 167
The GROUP BY Clausep. 168
GROUP BY and ORDER BYp. 170
The HAVING Clausep. 172
HAVING and WHEREp. 173
GROUP BY and HAVING: Aggregates of Aggregatesp. 174
Auditing IN Subqueriesp. 176
Nulls Revisitedp. 179
Chapter 8 Exercisesp. 182
Optional Exercisep. 183
Correlated Subqueriesp. 185
Non-Correlated Subqueriesp. 185
Correlated Subqueriesp. 187
Existence Queries and Correlationp. 189
EXISTSp. 191
From IN to EXISTSp. 197
NOT EXISTSp. 198
SQL Universal and Existential Qualifiers: The "For All" Queryp. 201
Example 1p. 202
Example 2p. 204
Example 3p. 208
Chapter 9 Exercisesp. 209
Referencesp. 213
CREATE TABLEs and SQLLOADERp. 215
The "Simple" CREATE TABLEp. 215
The NOT NULL Constraintp. 216
PRIMARY KEY Constraintsp. 218
Creating the PRIMARY KEY Constraintp. 218
Adding a Concatenated Primary Keyp. 219
The UNIQUE Constraintp. 220
The CHECK Constraintp. 221
Referential Integrityp. 221
Defining the Referential Integrity CONSTRAINTp. 223
Adding the Foreign Key After Tables Are Createdp. 224
Using Delete and the Referential Constraintp. 225
ON DELETE RESTRICTp. 225
ON DELETE CASCADEp. 225
ON DELETE SET NULLp. 226
More on CONSTRAINT Namesp. 226
SQLLOADERp. 227
SQLLOADER Example 1p. 228
Another SQLLOADER Examplep. 231
Chapter 10 Exercisesp. 231
Multiple Commands, START Files, and Reports in SQLPLUSp. 235
Creating a File (a START Table) and STARTing Itp. 235
A START File with Editing Featuresp. 236
Using the DECODE, GREATEST, and LEAST Functionsp. 239
DECODEp. 239
GREATEST and LEASTp. 240
Adding Reporting Commands to a START Filep. 242
A New and Improved Scriptp. 243
Using START Files with ACCEPT and PROMPTp. 247
Using START Files with Positional Inputp. 249
Chapter 11 Exercisesp. 250
Beginning PL/SQL Examples: Anonymous BLOCKS Procedures, Functions, and Packagesp. 253
Anonymous Blocksp. 254
Elementary Procedures with Sequence Structuresp. 255
A Simple Example of a Procedurep. 256
Re-Using a Procedurep. 257
Deleting a Procedurep. 257
Adding a Parameter List to a Procedurep. 258
Performing More than One Action in a Procedurep. 258
Procedures with Selection and Iterationp. 260
Example of a Procedure with Selectionp. 260
Example of a Procedure with Iterationp. 260
Functionsp. 262
Example of a Functionp. 262
Deleting a Functionp. 263
Packagesp. 263
Creating a Packagep. 264
Another Approach to Creating This Packagep. 266
Deleting a Packagep. 267
Defining a PL/SQL INDEX BY Tablep. 267
Using a PL/SQL Tablep. 269
Chapter 12 Exercisesp. 270
Referencesp. 270
Introduction to Triggersp. 271
What Is a Trigger?p. 271
A Simple Trigger Examplep. 272
How the Trigger Workedp. 274
Row-Level Triggers versus Statement-Level Triggersp. 274
Enabling and Disabling Triggersp. 275
Enabling All Triggers for a Tablep. 275
Deleting Triggersp. 275
Values in the Triggerp. 275
Using WHENp. 276
Performance Issues Using WHENp. 277
A Trigger Where One Table Affects Another Triggerp. 277
Mutating Tablesp. 280
Chapter 13 Exercisesp. 281
Referencesp. 283
Getting Started with Oracle in the UNIX Systemp. 285
Getting Started on Oracle in UNIXp. 285
Signing onto Oracle in UNIXp. 285
The HELP Command with Oracle Under UNIXp. 286
Editing SQL Commands in UNIXp. 287
Editing SQL Commands Using an Editorp. 288
Defining an Editorp. 288
Editing the Bufferp. 289
Saving the Bufferp. 290
Using GETp. 290
Using a Script File to Save Your Queryp. 291
Editing SQL Commands Using SQLPLUSp. 291
Using the CHANGE Commandp. 291
Using the LIST Commandp. 292
Using Other Commandsp. 293
Some UNIX Commandsp. 294
Summary Tablep. 296
Other Miscellaneous Commandsp. 296
Editorsp. 297
Using vi as Your Editorp. 297
Other vi Commandsp. 298
Using Joe as Your Editorp. 298
Appendix 1 Exercisesp. 298
The Data Dictionaryp. 299
Beginning to Explore the Data Dictionaryp. 300
A Paradigm for Choosing a View from the Dictionaryp. 302
Describing the Dictionary Itselfp. 303
Choosing the View You Want to Seep. 303
Describing the View You Want to See (DESC ALL_CATALOG)p. 304
Finding the Right Attributesp. 305
Finding out How Many Rows There Are in the Viewp. 305
Views of TABLESp. 306
Other Objects: Tablespaces and Constraintsp. 306
Views of Tablespacesp. 306
Views of Constraintsp. 308
Appendix 2 Exercisesp. 309
Referencesp. 310
The Student Database and Other Tables Used in this Bookp. 311
The Student-course Databasep. 311
Entity Relationship Diagram of the Student-course Databasep. 312
Other Tables Used in this Bookp. 313
Improvements in Oracle 8i and 9ip. 315
Improvements in Oracle 8ip. 315
Improvements in Data Dictionary Features in Oracle 8ip. 316
Packages Added in Oracle 8ip. 317
Improvements in Oracle 9ip. 318
Improvements in Data Dictionary Features in Oracle 9ip. 319
Packages Added in Oracle 9ip. 319
Referencesp. 319
Glossary of Termsp. 321
Glossary of Important Commands and Functionsp. 329
Index of Termsp. 337
Index of Important Commands and Functionsp. 339
Indexp. 341
Table of Contents provided by Syndetics. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program