Professional Documents
Culture Documents
Oracle Functions
Oracle Functions
Paper V
PGDCS&A
By Rupa Patel
Lecturer, MCA dept.
GHRIIT, Nagpur.
UNIT III -SQL
CODD’s Rules, oracle database objects, Sub Languages of SQL,
data Types, Operators.
DDL Statements : Creating tables, Deriving Table from Existing
table, Altering, Dropping Tables, Integrity
Constraints,Specifying Names for the constraints,Viewing
Integrity constraints,adding & Dropping Constraints.
DML Statements : SELECT statement,Insert,update,Delete,&
Synonyms.
Functions : Arithmetic,Date,Character,Cobnversions.Single
row,Aggregate,Decode,Joins,Set operators & Sub queries.
DCL & TCL Statements : Grant,Revoke,Commit,Rollback &
Savepoints.
What is a Function?
Stored Software that Manipulates
Submitted Elements and Returns Some
Value
May by a SQL Standard Function (SUBSTR)
Could be Application Specific
Note :
exp( number )
number is the power to raise e to.
exp(3)would return 20.0855369231877
exp(3.1)would return 22.1979512814416
exp(-3)would return 0.0497870683678639
1. AVG :
Returns the average of the column
values.
Syntax : avg([distinct | all ] columnname)
Eg. Select avg(mark) from studr;