Skip to content

Commit c557356

Browse files
committed
Modulo
1 parent dc9dae9 commit c557356

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

6. Odd-Even MOD.sql

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- mod(column,2) return remainder
2+
-- if it is 0 then it's EVEN.
3+
-- otherwise it's ODD.
4+
select name from db where mod(id,2) = 0;
5+
6+
select name from db where mod(id,2) = 1;

0 commit comments

Comments
 (0)