Is it possible to “merge” 2 groups obtained after a SQL statement that use group by. For example if I have a field size ENUM(‘extra-small, ‘small’, ‘medium’, ‘large’, extra-large’) and then I run this query SELECT * from clothes GROUP BY size;, but for in one case I would like to get in result “extra-small” and “small” in the same group. Is this possible with SQL?
Is it possible to merge 2 groups obtained after a SQL statement that use
Share
yes, you can:
demo: http://sqlfiddle.com/#!2/ae3fa/2