How to set conditional logic in SQL query to shuffle priority?
For example, if I have a table with columns like "id", "name", "event_id", and I have a separate "event_id", such as 180, 181, 270, 271, and I need to order so that the rows with "event_id" 270 will be at the top, then rows with "even_id" 271, and the rest of the data will be ordered by column "id" in descending order.
source share