[sql] Finding even or odd ID values