Join two tables, merge and transpose the result
问题 Ok, say i have two tables products and product_options . structure table products be like: +--------------------------------------+ | p_id | product_name | product_status | +--------------------------------------+ | 1 | Keyboard ABC | PENDING | | 2 | Mouse ABC | ORDERED | | 3 | Monitor ABC | ORDERED | +--------------------------------------+ And table product_options be like: +--------------------------------------+ | po_id | p_id | opt_name | opt_value + +------------------------------------