Last active
November 22, 2017 07:18
-
-
Save congnt24/a2545fa973fbd048ce0ce99f1c664e4f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
*, | |
(SELECT json_build_object('id', ref.user_id, 'email', ref.email) | |
FROM user_profile_with_referal ref | |
WHERE customer_id = 84061) AS referal_info | |
FROM user_profile_full | |
WHERE user_id = 84061; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment