Click here to see the full article post
We can use id & 1 to determine the odd id.
SELECT * FROM cinema WHERE id & 1 AND description != 'boring' ORDER BY rating DESC
SELECT * FROM cinema
WHERE id%2 != 0 and description != 'boring'
ORDER BY rating DESC;
select * from cinema
where description <> 'boring'
and (id % 2) <> 0
order by rating desc;
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.