mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-28 11:39:52 +02:00
Fix query (#5424)
Description of having clause filter is incorrect. The current query filters for Customers with a total amount strictly greater than $3000.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user