sql query to find even and odd numbers code example Example: find a even number sql Select * from table where id % 2 = 0