Created
September 11, 2013 12:00
-
-
Save alexoro/6522610 to your computer and use it in GitHub Desktop.
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 friends._id, friends.global_first_name, friends.global_last_name, friends.friend_first_name, friends.friend_last_name, friends.status_text, friends.avatar_url | |
LEFT OUTER JOIN buddies ON buddies._id = | |
(SELECT buddies_contacts.buddy_id FROM buddies_contacts WHERE buddies_contacts.contact_hash IN | |
(SELECT friends_contacts.contact_hash FROM friends_contacts WHERE friends_contacts.private_user_id = friends.private_user_id)) | |
FROM friends_contacts | |
WHERE type = ? | |
ORDER BY global_first_name COLLATE LOCALIZED ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment