Skip to content

Instantly share code, notes, and snippets.

@parkerfoshay
Last active December 6, 2022 22:22
Show Gist options
  • Save parkerfoshay/e54de8c8a51e962df5e343fd194de3b5 to your computer and use it in GitHub Desktop.
Save parkerfoshay/e54de8c8a51e962df5e343fd194de3b5 to your computer and use it in GitHub Desktop.
queries
db.zips.findOne({})
db.zips.find({state: 'AZ', pop: {$lt: 500}}, {_id: 0, city: 1})
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