Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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