Created
February 21, 2017 07:13
-
-
Save ken-master/8c5662f6b764c104e84893f9edd3ccf3 to your computer and use it in GitHub Desktop.
sample of group_concat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select sku, group_concat(itemid) as itemids | |
from rfq_pipeline | |
left join candidate_skus using (sku) | |
group by sku limit 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
will return:
| SKU | ITEMIDs |
============================|
| SKU123 | 123, ABC, XYZ |