Documente Academic
Documente Profesional
Documente Cultură
----------------
Arithmetical operators:
-----------------------
+ addition
- subtract
* multiply
/ division (quotient)
Logical operators:
------------------
and
or
not
and
a b c=a*b
0 0 0
0 1 0
1 0 0
1 1 1
Note: if all input values are true then output is true else false.
or
a b c=a+b
0 0 0
0 1 1
1 0 1
1 1 1
Note: If any one input values are true then output is true else false.
Not
a c
0 1
1 0
Special operators:
-----------------
in
not in
between
not between
like
not like
is null
is not null
set operators:
--------------
union
union all
intersect
minus
Assignment operators:
--------------------
:=
a:=100
b:=200
c:=a+b
Concatenation operators:
------------------------
|| (pipe line char)
Number datatypes: (0 to 9)
------------------
number(10)
number(10,2)=> 9999999.99
int - 4 bytes
OR
INTEGER - 4 BYTES
Large objects(LOB)
------------------
BLOB -binary large objects
CLOB - character large objects
BFILE -binary file
Raw datatypes:
---------------
raw
long raw
syntax:
--example
I syntax:
select <Fieldnames>
from <tablename>
where <condition>
group by <fieldname>
having <condition>
order by <fieldname> desc/asc;
System follows:
---------------
from <tablename>
where <condition>
group by <fieldname>
having <condition>
order by <fieldname> desc/asc;
select <fieldnames>
ex:
--example
student
sname sno s1 s2 s3
aaa 101 90 89 78
bbb 102 67 90 99
ccc 103 45 67 56
Insert command
-----------------
party
bank_transaction
BANK_MASTER
ACCNO BALANCE
1001 10000
1002 20000
1003 30000
1004 40000
1005 50000