How can you select all the even number records from a table and All the odd number records

To select all the even number records from a table:

Select * from table where id % 2 = 0

To select all the odd number records from a table:

Select * from table where id % 2 != 0

results matching ""

    No results matching ""