September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
21
Task/Integer-comparison/SQL/integer-comparison.sql
Normal file
21
Task/Integer-comparison/SQL/integer-comparison.sql
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
drop table test;
|
||||
|
||||
create table test(a integer, b integer);
|
||||
|
||||
insert into test values (1,2);
|
||||
|
||||
insert into test values (2,2);
|
||||
|
||||
insert into test values (2,1);
|
||||
|
||||
select to_char(a)||' is less than '||to_char(b) less_than
|
||||
from test
|
||||
where a < b;
|
||||
|
||||
select to_char(a)||' is equal to '||to_char(b) equal_to
|
||||
from test
|
||||
where a = b;
|
||||
|
||||
select to_char(a)||' is greater than '||to_char(b) greater_than
|
||||
from test
|
||||
where a > b;
|
||||
Loading…
Add table
Add a link
Reference in a new issue