Last active
December 6, 2022 22:22
-
-
Save parkerfoshay/e54de8c8a51e962df5e343fd194de3b5 to your computer and use it in GitHub Desktop.
queries
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
db.zips.findOne({}) | |
db.zips.find({state: 'AZ', pop: {$lt: 500}}, {_id: 0, city: 1}) |
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 * FROM zips LIMIT 1; | |
SELECT city FROM zips WHERE state = 'AZ' AND pop < 500; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment