Features of DBMS: - Relation Is Nothing But Set
Features of DBMS: - Relation Is Nothing But Set
Features of DBMS: - Relation Is Nothing But Set
Features of DBMS
Simplicity
Query Language is non-procedural
Physical implementation storage depends on OS
Recovery depends on OS
Concept of Relation
Page 1 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
Features Of Oracle
Components Of Oracle
SQL PLUS
PL/SQL
SQL FORMS
SQL REPORT WRITER
UTILITIES (IMP, EXP etc)
Introduction to SQL
Non-Procedural Language.
Unified Language
Page 2 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
PL/SQL
Support for SQL
Block Structure
Higher Productivity
Better Performance
Integration
Control structures
Modularity & Portability
DECLARE
} Declaration
BEGIN
} Executable statements
EXCEPTION
} Handlers
END;
Page 3 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
Objects can be declared in the declarative part, which can be used in the
executable part for further manipulations .All the procedural statements are
included in between the BEGIN and END statements. Errors that occur
during execution are dealt in the exception handling part.
ORACLE DATATYPES
The above said data types are the most widely used data types in finacle
database.
Example:
Page 4 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
schm_code varchar2(5)
acct_opn_date date
COMMIT
Will commit the changes that has been made to the table.
ROLLBACK
Will rollback all the changes that has been made to the table
Page 5 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
Syntax:
Example:
Page 6 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
RELATIONAL OPERATORS
= : Equal to
> : Greater than
< : Less than
>= : Greater than or equal to
<= : Less than or equal to
<>, != : Not equal to
Examples:
LOGICAL OPERATORS
OR : Logical OR
Page 7 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
SPECIAL OPERATORS
Examples:
General_Account_Master_Table WHERE
Schm_code IN (‘SBGEN’,’CDGEN’);
Page 8 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
AGGREGATE FUNCTIONS
Example:
GROUP BY schm_code;
Page 9 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
ORDER BY schm_code;
SET OPERATORS
Union
Union all
Minus
Intersect
UNION OPERATOR
Eliminates duplicate rows
Example:
Page 10 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
UNION ALL
INTERSECT OPERATOR
MINUS OPERATOR
This returns only those rows returned by the first query but not in the
second.
Example:
Select cust_id from cmg minus select cust_id from gam;
Page 11 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
Dual Table
Created along with the data dictionary .It is schema of the user sys but
accessible to all the users. Useful for computing a constant expression
with the select statement. Dual has only one row, the constant is only
returned once.
Example:
Select sysdate from dual;
PSEUDO COLUMNS
It is a column that yields a value when selected but which is not an actual
column of a table. Example Sysdate.
Some Oracle pseudo columns are as follows
NUMBER FUNCTIONS
ABS
It returns the absolute value of N
Page 12 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
FLOOR
Returns largest integer equal to or less than N
Select floor (15.9) “ FLOOR “ from dual;
Result is 15
MOD
Returns remainder of m divided by n
Select mod (12,3) from dual;
Result is 0
ROUND:
Round (n [, m])
Returns n rounded to m places right of the decimal point m can be
negative to round off digits left to the decimal point .m must be an
integer
Page 13 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
INITCAP
Select initcap (‘ram’) from dual;
Result: Ram
LOWER
Select LOWER (‘ M/S HINDUSTAN LEVER LTD ‘) from dual;
Result: m/s Hindustan lever ltd
LPAD
Left padded to length n with the sequence of characters.
RPAD
Right paded to length n with characters
Page 14 of 15
Training Program for Nigerian Banks
Telesis Technologies (I) Pvt Ltd. Finacle Product Group
LTRIM
Select ltrim (‘1234ALPHA’,’12’) from dual;
Result: 34ALPHA
RTRIM:
Select rtrim (‘BROWINGXYXY’,’XY’) from dual;
Result: BROWING
SUBSTR
Select substr (‘ABCDEFG’, 3,4) from dual;
Result: CDEF
UPPER
Select upper (‘Large’) from dual;
Result: LARGE
Page 15 of 15
Training Program for Nigerian Banks