Last active
September 4, 2022 14:05
-
-
Save gmyrianthous/0453dc9c3558966c7914724503a0b886 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 DISTINCT ON (customer_id) customer_id, store_id | |
FROM rental; | |
/* | |
|customer_id|store_id| | |
|-----------|--------| | |
| 58 | 2 | | |
| 100 | 4 | | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment