Skip to content

Commit

Permalink
Update 10.md (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
RiyaRaj28 authored May 4, 2024
1 parent 4fa92bd commit c52af47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function parseQuery(query) {
module.exports = { parseQuery, parseJoinClause };
```

> 💡**Do it yourself**: Update the `parseQuery` function based on the hints in the above code snippet.
> 💡**Do it yourself**: Check if the aggregate function is being used with or without a groupBy clause and update the `parseQuery` function based on the hints in the above code snippet.
### 10.2 Update the Execute Function to Apply GROUP BY and Aggregate Functions
- Modify `executeSELECTQuery` in `src/index.js` to perform grouping based on the `GROUP BY` clause and apply aggregate functions like `COUNT`, `SUM`, `AVG`, `MIN`, and `MAX`.
Expand Down Expand Up @@ -73,4 +73,4 @@ module.exports = executeSELECTQuery;
### 10.3 Add Tests for GROUP BY and Aggregate Functions
Update the test suite to include tests for queries using the `GROUP BY` clause and aggregate functions. [Commit for reference](https://github.com/ChakshuGautam/stylusdb-sql/commit/2df5a81650ce1f3846ec8e0b605aa2e7371dcf79)

> 💡 **Do it yourself**: Think of both negative and positive scenarios and make sure to cover all cases.
> 💡 **Do it yourself**: Think of both negative and positive scenarios and make sure to cover all cases.

0 comments on commit c52af47

Please sign in to comment.