When a developer encounters a complex query requirement that involves conditional aggregation, the most suitable Query Builder method to use is ________.

  • aggregate()
  • conditional()
  • group_by()
  • having()
In CodeIgniter's Query Builder, the having() method is used for conditional aggregation. It is applied after the group_by() clause and is suitable for handling complex queries that involve conditional aggregations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *