![]() |
Playing with Numbers![]() ![]() ![]() ![]() ![]()
Almost everything we do in our everyday lives, and particularly in business matters
is measures, explained and often and guided by numbers. In business matters, good
mathematical analysis of familiar numbers will often show trends and facts that
were not apparent initially. ORACLE functions deal with three classes of numbers: 1. Single values 2. Groups of values 3. Lists of values The classes are distinguished in this way: A single value is one number, such as these: A literal number, such as 434.7668 A variable in SQL*PLUS or SQL*FORMS One number from one column and one row of the database ORACLE single value functions usually change these values through a calculation. A group of values is all the numbers in one column from a series of rows, such as the closing stock price for all the rows of stocks in the STOCK table. ORACLE group value functions tell you about the whole group, such as average stock price A list of values is a series of numbers that can include Variables in SQLPLUS or SQL*FORMS Columns such as Opening price, closing price, Bid, Ask <b>Notation</b> Functions will be shown with this kind of notation: FUNCTION (Value[,option]) The function itself will be uppercase. Values and options will be shown in lowercase italics. Any time, the world value appears this way, it represents one of the following: a literal number; the name of a number column in a table; the result of a calculation; or a variable. Because ORACLE does not allow numbers to be used as column names, a literal number should not be in single quotation marks (as a literal string would be in a string function). Column names also must not have quotation marks. Every function has only one pair or parentheses. Everything that function is to affect, as well as additional instructions you can give the function, goes between its two parentheses. Single Value FunctionsValue 1 + value2 - Addition Valuel value2 - Subtraction valuel*value2 - Multiplication Valuel/value2 - Division ABS(value) - Absolute Value CEIL(value) - Smallest integer> then or=val COS(value) - COSine of value COSH(value) - Hyperbolic COSine of value EXP(value) - e raised to value EXPonent FLOOR(value) - Largest integer smaller than or=value
|
|
Domain NamesSQL Database Management Systems Relational Database Management System Properties of RDBMS Client Server Computing Oracle Relational Database Database Structure and Space Management SQL Data Types How to Use Data Types? What is Operators and Conditions Character OperatorsOperator Precedence Data Retrieval Using SQL Plus SQL Data Definitions Data Retrieval Using Select SQL Operator Precedence Selecting Rows and Columns The Group by Clause
Having Clause Union, Union all, Intersact and Minus Commands Playing with Numbers Date Functions Example of Date Arithmetic Working with Null Values
Joining Tables and Subqueries Views Synonyms Indexes Clusters Sequences Formatting Query Results with SQL Plus Data Integrity The Optimizer How Oracle Optimizes SQL Statements Evaluating Expression and ConditionsOptimization Hints PL-SQL PL-SQL Architecture Error Reporting Functions Character Functions Composite Data Types PL-SQL Structures How to use PL-SQL Structures Normalization Operator Precedence Cursor Error Handling Database Triggers Types of Triggers Locking Sub Programs Packages New and Improved Data Types Improved Select Statement Advanced Quering Improved Scalability Improved Performance Via Partitioning Object Relational Features Heterogeneous Data Access Improved Security Administration New Data Types Improved Select Statement Changes to the Select Statement Improved Scalability Data Partitioning Oriented Toward Objects Character Functions Creating Object Types Created Nested Tables Oracle8 and Distributed Database Oracle8 Database Management and Security Distributed Database Invoking Export Invoking ImportWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |