-1

How do I write this SQL command in NoSQL

SELECT regionname from Worldbank;
eshirvana
  • 23,227
  • 3
  • 22
  • 38
Rana Omer
  • 13
  • 2
  • see mongodb [find() docs](https://docs.mongodb.com/manual/reference/method/db.collection.find/#db.collection.find--) – turivishal Apr 24 '21 at 16:43

1 Answers1

0

that would be :

db.Worldbank.find({}, {regionname:1})

if you want distinct list of a column :

db.Worldbank.distinct("regionname")
eshirvana
  • 23,227
  • 3
  • 22
  • 38