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