MySQL Forums
Forum List  »  General

Re: GROUP BY and NULL values
Posted by: Mason Sklut
Date: June 10, 2020 07:27PM

Is there anyway to get both styles to show on separate rows (V,C) for the same Order ID?

+----------+------+-------------+-------+----------+
| Order ID | Qty | Option | Style | Product |
+----------+------+-------------+-------+----------+
| 12345 | 1 | Classic Red | V | ProductA |
| 12345 | 1 | Classic Red | C | ProductA
| 12346 | 1 | Grey | Y | ProductB |
+----------+------+-------------+-------+----------+

Options: ReplyQuote


Subject
Written By
Posted
June 10, 2020 12:50PM
Re: GROUP BY and NULL values
June 10, 2020 07:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.