Hi i read in a book that
"any query expressed using a HAVING clause can always be reqritten without the HAVING clause"
any clues as to how you could re write it
e.g. would you need to use a subquery etc ... my book doesn't elaborate.
basically i can't use the HAVING clause as the aggregate function only producees the data i want using its WHERE clause and i cannot use these fields in the Group by and (if my understanding is correct you cannot have a HAVING clause that has fields in it that aren't part of an aggregate function or group by)
i hope that makes sense
"any query expressed using a HAVING clause can always be reqritten without the HAVING clause"
any clues as to how you could re write it
e.g. would you need to use a subquery etc ... my book doesn't elaborate.
basically i can't use the HAVING clause as the aggregate function only producees the data i want using its WHERE clause and i cannot use these fields in the Group by and (if my understanding is correct you cannot have a HAVING clause that has fields in it that aren't part of an aggregate function or group by)
i hope that makes sense