Oracle Flashcards
SQL
Structured query language
Relational db
Uses relations or two-dimensional tables to store information
ANSI
American national standards institute
Data retrieval operator
Select
DML
Data manipulation language
DML operators
Insert
Update
Delete
Merge
DDL
Data definition language
DDL operators
Create Alter Drop Rename Truncate
Transactional control operators
Commit
Rollback
Savepoint
DCL
Data control language
DCL operators
Grant
Revoke
Suppress duplicates keyword
Distinct
Arithmetic expressions containing null evaluate to …
null
Oracle SQL concatenation operator
||
Literal value is .., … or …
character, number or date
Display strucutre of table in SQL*Plus
Desc[ribe]
‘Like’ condition wildcard for one character
_
‘Like’ condition wildcard for zero or many character
%
Rules of precedence
Arithmetic Concatenation Comparison LIKE, IS NULL, IN BETWEEN NOT AND OR
Order by default order
Ascending
Reverse order by order with
desc
Oracle functions can be
Single-row and multiple-row
Single-row functions hierarchy
Character Number Date Conversion General (nvl, nullif, case, decode)
Character functions can be
Case-manipulation and character-manipulation
Case-manipulation functions
Lower
Upper
Initcap
Character-manipulation
Concat Substr Length Instr Lpad rpad Trim Replace
Number functions
Round
Trunc
Mod
Default date format
DD-MON-RR
Translate Explicit
Явный
Coalesce
Returns the first non-null expression in the expression list
Nullif
Returns null if expressions are equal, returns 1 expression if not
SQL Conditional expressions
Case
Decode
When join is omitted or invalid we recieve
Cartesian product
Equijoin
Simple join
Inner join
Values on both tables must be equal