Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Integer-comparison/SQL-PL/integer-comparison-1.sql
Normal file
15
Task/Integer-comparison/SQL-PL/integer-comparison-1.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
CREATE TABLE TEST (
|
||||
VAL1 INT,
|
||||
VAL2 INT
|
||||
);
|
||||
INSERT INTO TEST (VAL1, VAL2) VALUES
|
||||
(1, 2),
|
||||
(2, 2),
|
||||
(2, 1);
|
||||
SELECT
|
||||
CASE
|
||||
WHEN VAL1 < VAL2 THEN VAL1 || ' less than ' || VAL2
|
||||
WHEN VAL1 = VAL2 THEN VAL1 || ' equal to ' || VAL2
|
||||
WHEN VAL1 > VAL2 THEN VAL1 || ' greater than ' || VAL2
|
||||
END COMPARISON
|
||||
FROM TEST;
|
||||
Loading…
Add table
Add a link
Reference in a new issue