--- title: "HAVING Clause Limitations | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual helpviewer_keywords: - "HAVING clause limitations [ODBC]" - "ODBC SQL grammar, HAVING clause limitations" ms.assetid: 80f3a839-50bb-42cc-b2a4-06a533145edb author: David-Engel ms.author: v-daenge --- # HAVING Clause Limitations The maximum number of search conditions in a HAVING clause is 40.