Having Clause or Sub-Select ?

  • In a select statment, which causes more overhead, using a sub-select in the where clause or using Having?

  • Could you give more details about your need and with an example if it's possible.

    Thanks

    JMackels Developper/DBA

  • As with any query it can vary. In some situations it may be subselect has more overhead than having, but other might be the opposite. The best way is to try both solutions and compare the time to output, the cpu utilization and read duration amounts and the overall query execution plan.

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply