Skip to content
Advertisement

merge values in select

I have next part of query:

Result is next:

what I need is to merge results soft, lite soft and other as other. to get next table:

Advertisement

Answer

You can use a case expression`:

If you want the result in a particular order — say with other at the end, then a lateral join helps:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement