I have a table named item
with two attributes (code
and name
).
Now i want to group them in the following way:
group a: code between (5300 and 5310),(7100,7200),(8210,8290)
group b: code not between (5300 and 5310),(7100,7200),(8210,8290)
How can i do it using MySQL query?