Sql Server we can use % select * from orders where ID % 2 = 0; This can be used in both Mysql and oracle. It is more affection to use mod function that %. select * from orders where mod(ID,2) = 0