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 |
---|---|---|---|
MongoDB metrics on collection level | 2 | 167 | Oct 2024 |
Node JS connection error | 1 | 195 | Oct 2024 |
Can’t Sign in to MongoDB Atlas | 1 | 62 | Nov 2024 |
Enable Profile in Mongodb Atlas Database | 0 | 30 | Dec 2024 |
Mongodb $lookup is not using the index even though “_id” is there on joining collection. | 0 | 41 | Jan 28 |