Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
6.6k views
in Computer by (76.5k points)

How is HAVING clause similar to WHERE clause? How is HAVING clause different from WHERE clause? Explain with the help of examples of each.

1 Answer

+1 vote
by (75.3k points)
selected by
 
Best answer

Similarity:

Having and Where both can be said to be as decision structures which are used in SQL to take an action to the data base or more specifically on any table of data base by matching a some sort of strings or values based on the values already present in the database.

Difference :

A WHERE clause is used is filter records from a result. The filter occurs before airy groupings are made. A HAVING clause is used to filter values from a group.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...