Skip to content

Commit

Permalink
Fix query (#5424)
Browse files Browse the repository at this point in the history
Description of having clause filter is incorrect. The current query filters for Customers with a total amount strictly greater than $3000.
  • Loading branch information
SkittyWitty committed May 11, 2024
1 parent 5a23051 commit e1f32a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ As a result, the query returns:
| John | 6000 |
| Mary | 6000 |

In this case, the `HAVING` clause filters out all Customers with a total `Amount` less than $3000. Only John and Mary have the total sum of `Amount` more than or equal to $3000. Thus, only these records satisfy the `HAVING` clause and are included in the result.
In this case, the `HAVING` clause filters out all Customers with a total `Amount` less than or equal to $3000. Only John and Mary have the total sum of `Amount` more than $3000. Thus, only these records satisfy the `HAVING` clause and are included in the result.

0 comments on commit e1f32a1

Please sign in to comment.