skip to Main Content

Mysql – Transform 2 'number' columns to 'varchar' and 'number' columns depending on column names

I have a table with the following structure: +------+--------------+--------------+ | SHOP | BUY_PROFIT | SELL_PROFIT | +------+--------------+--------------+ | A        |                 10 |                 15 | +------+--------------+--------------+ I need to write select statement to make it look like this: +------+------+--------+ | SHOP…

VIEW QUESTION
Back To Top
Search