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 |
---|---|---|---|
Replica set has no primary - How to prevent? | 1 | 441 | May 2024 |
Commands in Mongosh not updating the database in Compass & Cluster | 0 | 41 | Nov 2024 |
Authentication failed. There was a problem connecting to Database | 0 | 40 | Jan 3 |
Data transfer cost in google cloud | 2 | 77 | Jan 24 |
CSFLE on Node .js windows | 7 | 59 | 22d |