Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 417 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
417
Dung lượng
4,36 MB
Nội dung
[...]... calculators In fact, most programming languages go far beyond the calculator functionsOracle s SQL contains a rich variety of functions We can categorize Oracle s SQL functions into simple SQL functions, numeric functions, statistical functions, string functions, and date functionsIn this chapter, we selectively illustrate several functionsin each of these categories We start by discussing simple SQL functions. .. programming perspective to them This book will allow the Oracle user to use SQLin new and exciting ways This book contains nine chapters It begins by reviewing some of the common SQLfunctions and techniques to help transition into the newer tools of Oracle10g Chapter 1 reviews common Oraclefunctions Chapter 2 covers some common reporting tools inOracle s SQL* Plus Chapter 3 introduces and discusses Oracle. .. We review some common reporting functionsin Chapter 2 Our Approach to SQL In addition to a basic knowledge of SQL, we will call attention to “our way” of developing queries inSQL The way we develop queries inSQL is often by beginning with a simple command and then building upon it until the answer is found There are different approaches to building queries inSQL as in any other language One way... professionals as well as students, but it is not a SQL primer Readers of this book are expected to have previously used Oracle, SQL* Plus, and, to some extent, PL /SQL This book can be used for individual study or reference, inadvancedOracle training settings, and inadvanced xi Preface database classes in schools It is meant for those familiar with SQL programming since most of the topics present not only the... tools into a set of topics for exploiting Oracle10g s SQL We have also briefly reviewed some older tools that will help transition to the new material This book mainly addresses advanced topics inSQL with a focus on SQLfunctions for Oracle10g The functions and methods we cover include the analytical functions, MODEL statements, regular expressions, and object-oriented/collection structures We also introduce... Oracle10g Chapter 9 introduces by example the bridges between SQL and XML, one of the most important topics Oracle professionals are expected to know today This book also has two appendices Appendix A illustrates string functions with examples, and Appendix B gives examples of some important statistical functions available in Oracle10g Overall, this book explores advanced new features of SQL in Oracle. .. desirable, although some common functions are reviewed in Chapter 1 Functions have been refined and expanded as Oracle versions have evolved, culminating with the latest inOracle10g — analytical functions, MODEL statements, and regular expressions Additionally, the collection/object-oriented structures of later versions of Oracle are covered and xv Introduction include some unique functions as well Many people... discusses Oracle10g s analytical functions, and Chapter 4 discusses Oracle10g s aggregate functions that are used as analytical functions Chapter 5 looks at the use of analytical functionsin reporting — for example, the use of GROUP BY, ROLLUP, and CUBE Chapter 6 discusses the MODEL or SPREADSHEET predicate inOracle s SQL Chapter 7 covers the new regular expressions and string functions Chapter... numeric functions, which we divide into the following categories: common numerical manipulation functions, near value functions, null value functions, log and exponential functions, ordinary trigonometry functions, and hyperbolic trignometrical functions Common Numerical Manipulation Functions These are functions that are commonly used in numerical manipulations Examples of common numerical manipulation functions. .. gives: POWER(VALUE,2) -81 Ordinary Trigonometry FunctionsSQL s ordinary trigonometry functions include: SIN — Returns the sine of a value COS — Returns the cosine of a value TAN — Returns the tangent of a value The SIN, COS, and TAN functions take arguments in radians where, radians = (angle * 2 * 3.1416 / 360) To illustrate the use of the ordinary trigonometric functions, let’s suppose we have . used for individual study or reference, in advanced Oracle training settings, and in advanced xi database classes in schools. It is meant for those famil - iar with SQL programming since most. Analytical Functions in Oracle (Analytical Functions I) 53 What Are Analytical Functions? 53 The Row-numbering and Ranking Functions 55 The Order in Which the Analytical Function Is Processed in the SQL. Bagui Wordware Publishing, Inc. Library 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