Last active
December 2, 2016 20:40
-
-
Save sillypog/a153755dd14566c0011d01aa9e49f6bf to your computer and use it in GitHub Desktop.
Portmeirion.IdentifyController 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 warehouse_id | |
FROM users as u | |
FULL JOIN devices AS d ON d.user_id = u.id | |
WHERE login_id = ? OR device_id = ? OR prism_id = ? | |
ORDER BY u.login_id, d.device_id, u.prism_id | |
LIMIT 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment