$ 0 0 One another option is to use CASE WHEN. To know what would work better, you can check EXPLAIN and compare the performance of different options.
One another option is to use CASE WHEN.
To know what would work better, you can check EXPLAIN and compare the performance of different options.