SQLite HAVING ClauseThe SQLite HAVING clause is used to specify conditions that filter which group results appear in the final results. The WHERE clause places conditions on the selected columns, whereas the HAVING clause places conditions on groups created by the GROUP BY clause. The position of HAVING clause in a SELECT query: Syntax: Example: Let's take an example to demonstrate HAVING Clause. We have a table named "STUDENT", having the following data: Example1: Display all records where name count is less than 2: Output: Example2: Display all records where name count is greater than 2: Output: Next TopicSQLite Distinct Keyword |