-
-
Save mokamoto/02d0fa6202be82b249b70c32a989c5ee to your computer and use it in GitHub Desktop.
MuleSoftハンズオン - SQL
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 product.*, CONCAT('["', (GROUP_CONCAT(variant.picture SEPARATOR '", "')),'"]') AS pictures, CONCAT('[', GROUP_CONCAT('{"',variant.identifierType, '":"', variant.identifier, '"}'),']') AS identifiers FROM product INNER JOIN variant ON product.uuid = variant.productUUID WHERE product.uuid = :id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment