Skip to main content
Greetings @SUBHASH_V_K and welcome to the community!
This is hard to diagnose without more information (like the logs), but one thing I’d point out is that your sql syntax is not correct. Our dialect, is called mongosql and you can find more about it in our documentation. It is SQL-92 compatible. Here is how you would want to form your SQL Statement:
Select EXTRACT(YEAR FROM released) as Released_Year, COUNT(EXTRACT(YEAR FROM released))as Year_Count from Movies.movies
GROUP BY Released_Year
Let me know if you have further questions.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Running mongodb/atlas local in kubernetes: exit status 1 | 1 | 313 | May 2024 |
Connecting MongoDB Atlas & GCP virtual machine through private endpoint fails. | 0 | 482 | Jun 2024 |
Clerk sending data via webhook is not showing in mongodb atlas | 0 | 32 | Dec 2024 |
Mongoc-1.0 thowing exception from installation guide | 2 | 51 | Dec 2024 |
MongoDB v7 Upgrade – Extreme Slowdown with collation: { locale: ‘en’ } | 0 | 19 | Feb 2 |