Richard Walsh Earp Sikha Saha Bagui Wordware Publishing, Inc... Library of Congress Cataloging-in-Publication DataEarp, Richard, 1940-Advanced SQL functions in Oracle 10g / by Richard W
Trang 2Richard Walsh Earp Sikha Saha Bagui
Wordware Publishing, Inc.
Trang 3Library of Congress Cataloging-in-Publication Data
Earp, Richard,
1940-Advanced SQL functions in Oracle 10g / by Richard Walsh Earp
and Sikha Saha Bagui.
p cm.
Includes bibliographical references and index.
ISBN-13: 978-1-59822-021-6
ISBN-10: 1-59822-021-7 (pbk.)
1 SQL (Computer program language) 2 Oracle (Computer file).
I Bagui, Sikha, 1964- II Title.
QA76.73.S67E26 2006
CIP
© 2006, Wordware Publishing, Inc
All Rights Reserved
2320 Los Rios Boulevard Plano, Texas 75074
No part of this book may be reproduced in any form or by
any means without permission in writing from
Wordware Publishing, Inc
Printed in the United States of America
ISBN-13: 978-1-59822-021-6
ISBN-10: 1-59822-021-7
10 9 8 7 6 5 4 3 2 1
0601
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other brand names and product names mentioned in this book are trademarks or service marks of their respective companies Any omission or misuse (of any kind) of service marks or trademarks should not be regarded as intent to infringe on the property of others The publisher recognizes and respects all marks used by companies, manufacturers, and developers as a means to distinguish their products.
This book is sold as is, without warranty of any kind, either express or implied, respecting the contents of this book and any disks or programs that may accompany it, including but not limited to implied warranties for the book’s quality, performance, merchantability, or fitness for any particular purpose Neither Wordware Publishing, Inc nor its dealers or distributors shall be liable to the purchaser or any other person or entity with respect to any liability, loss, or damage caused or alleged to have been caused directly or indirectly by this book.
All inquiries for volume purchases of this book should be addressed to Wordware Publishing, Inc., at the above address Telephone inquiries may be made by calling:
(972) 423-0090
Trang 4To my wife, Brenda,
and
my children, Beryl, Rich, Gen, and Mary Jo
R.W.E.
To my father, Santosh Saha, and mother, Ranu Saha,
and
my husband, Subhash Bagui,
and
my sons, Sumon and Sudip,
and
my brother, Pradeep, and nieces, Priyashi and Piyali
S.S.B.
Trang 5This page intentionally left blank.
Trang 6Index
selecting from, 286
updating, 285-286
using VALUE function with, 291-292
THE function, using with VARRAY,
306-309
titles, adding to report, 49-51
TO_CHAR function, 27-28, 41
using, 41-43
TO_DATE function, 29
TRANSLATE function, 367-368
trigonometry functions, 14-16
TRIM function, 24-25, 368
using, 25-27
TRUNC function, 7
using, 8-10
TTITLE command, 49-50
using, 50-51
type, defining in VARRAY, 299-300
TYPE, 293
TYPE BODY, 293-294
U
UNBOUNDED FOLLOWING clause,
134-135
UNTIL clause, 218-221
UPDATE clause, using, 278-279
UPDATE option, with FOR loop, 210-211
UPPER function, 368-369
UPSERT option, with FOR loop, 209-210
user-defined functions,
creating for column objects, 292-297
creating for VARRAY, 320-324
V
VALUE function,
using, 291-292
using with VARRAY, 306-307
values,
inserting into table, 275
inserting into TCRO, 284-285
VAR_POP function, 390
VAR_SAMP function, 390
variable array, see VARRAY
VARIANCE function, 391 VARRAY, 297-299 creating user-defined functions for, 320-324
loading table that contains, 301-302 manipulating, 302-303
self-join, 305-306 using CAST function with, 308-311 using COLUMN_VALUE function with, 307-309
using COUNT function with, 316-318 using EXISTS function with, 312-316 using LAST function with, 312-316 using MULTISET function with, 309-311
using TABLE function with, 303-304 using THE function with, 306-309 using VALUE function with, 306-307 virtual table, using as workaround, 77-78 VSIZE function, 369
W
WHERE clause, 63-64, 65 and SELECT statement, 67 using, 278
wildcard operator, 232 windowing, logical, 137-143 windowing subclause, 120
X
XML, 338 displaying in a browser, 342-344 generating from SQL tables, 344-347 problems with using attributes in, 340-341
transforming into SQL, 347-355 XML elements, 339-340
Trang 7Visit us online at www.wordware.com for more information Use the following coupon code for online specials: oracle0217
Looking for more?
Check out Wordware’s market-leading Application and Game Programming & Graphics Libraries featuring the following titles.
Embedded Systems
Desktop Integration
1-55622-994-1 • $49.95
6 x 9 • 496 pp.
AutoCAD LT 2006
The Definitive Guide
1-55622-858-9 • $36.95
6 x 9 • 496 pp.
Learn FileMaker Pro 7 1-55622-098-7 • $36.95
6 x 9 • 544 pp.
Access 2003 Programming by Example with VBA, XML, and ASP 1-55622-223-8 • $39.95
6 x 9 • 704 pp.
Web Designer’s Guide to Adobe Photoshop
1-59822-001-2 • $29.95
6 x 9 • 272 pp.
SQL Anywhere Studio 9
Developer’s Guide
1-55622-506-7 • $49.95
6 x 9 • 488 pp.
Macromedia Captivate
The Definitive Guide
1-55622-422-2 • $29.95
6 x 9 • 368 pp.
Unlocking Microsoft C# v2.0 Programming Secrets 1-55622-097-9 • $24.95
6 x 9 • 400 pp.
32/64-Bit 80x86 Assembly Language Architecture 1-59822-002-0 • $49.95
6 x 9 • 568 pp.
Word 2003 Document Automation with VBA, XML, XSLT, and Smart Documents
1-55622-086-3 • $36.95
6 x 9 • 464 pp.
Excel 2003 VBA Programming with
XML and ASP
1-55622-225-4 • $36.95
6 x 9 • 700 pp.
SQL for Microsoft Access 1-55622-092-8 • $39.95
6 x 9 • 360 pp.
Game Design Theory & Practice (2nd Ed.)
1-55622-912-7 • $49.95
6 x 9 • 728 pp.
Essential LightWave 3D [8] 1-55622-082-0 • $44.95
6 x 9 • 624 pp.
Programming Game AI by
Example
1-55622-078-2 • $49.95
6 x 9 • 520 pp.
Polygonal Modeling: Basic and Advanced Techniques 1-59822-007-1 • $39.95
6 x 9 • 424 pp.