September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
20
Task/Arithmetic-Integer/SQL/arithmetic-integer.sql
Normal file
20
Task/Arithmetic-Integer/SQL/arithmetic-integer.sql
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- test.sql
|
||||
-- Tested in SQL*plus
|
||||
|
||||
drop table test;
|
||||
|
||||
create table test (a integer, b integer);
|
||||
|
||||
insert into test values ('&&A','&&B');
|
||||
|
||||
commit;
|
||||
|
||||
select a-b difference from test;
|
||||
|
||||
select a*b product from test;
|
||||
|
||||
select trunc(a/b) integer_quotient from test;
|
||||
|
||||
select mod(a,b) remainder from test;
|
||||
|
||||
select power(a,b) exponentiation from test;
|
||||
Loading…
Add table
Add a link
Reference in a new issue