Ask questions which are clear, concise and easy to understand.
Ask QuestionPosted by Aakash Sir 6 years ago
- 1 answers
Posted by Rahul Khawle 6 years ago
- 1 answers
Posted by Njan Mahaan 6 years ago
- 0 answers
Posted by Pradeep Yadav 6 years ago
- 0 answers
Posted by Tanishqua Bhargawa 6 years ago
- 0 answers
Posted by Manvendra Singh 6 years ago
- 1 answers
Arpit Raj 6 years ago
Posted by Preeti Nagra 6 years ago
- 0 answers
Posted by Anmol Singh 6 years ago
- 0 answers
Posted by Manvendra Singh 6 years ago
- 1 answers
Preeti Nagra 6 years ago
Posted by Tabrej Khan 3 years, 5 months ago
- 1 answers
Sia ? 3 years, 5 months ago
- The WHERE clause is used in the selection of rows according to given conditions whereas the HAVING clause is used in column operations and is applied to aggregated rows or groups.
- If GROUP BY is used then it is executed after the WHERE clause is executed in the query. It means it selects the rows before grouping is done or aggregate calculations are performed. Thatswhy, WHERE clause is also called Pre-filter. But, GROUP BY is executed before the execution of the HAVING clause. It means it selects the rows after aggregate calculations are performed. Thatswhy, HAVING clause is also called as Post-filter.
- We cannot use the HAVING clause without SELECT statement whereas the WHERE clause can be used with SELECT, UPDATE, DELETE, etc.
- WE can use aggregate functions like sum, min, max, avg, etc with the HAVING clause but they can never be used with WHERE clause.
- HAVING clause is generally used with the GROUP BY. If you use the HAVING clause without GROUP BY then also it can refer to any column but it won't be used while performing the query unlike WHERE clause.
Posted by Pankaj Gupta 6 years ago
- 2 answers
Lovepreet Singh 6 years ago
Posted by Sunny Kumar 6 years, 1 month ago
- 0 answers
Posted by Ritika Sharma 6 years, 1 month ago
- 0 answers
Posted by Archana Singh 6 years, 1 month ago
- 0 answers
Posted by Vishwajeet Singh 6 years, 1 month ago
- 1 answers
Posted by Ranbir Trikha 6 years, 1 month ago
- 0 answers
Posted by Aaruhi Rawat 6 years, 1 month ago
- 1 answers
Posted by Gyanendra Chaudhary 6 years, 1 month ago
- 1 answers
Nuke 6 years, 1 month ago
Posted by B R 6 years, 1 month ago
- 0 answers
Posted by Khushi Jain 6 years, 1 month ago
- 0 answers
Posted by Vivek Kumar 6 years, 1 month ago
- 1 answers
Posted by Sudarshan Bhatt 6 years, 1 month ago
- 0 answers
Posted by Tushar Soni 6 years, 1 month ago
- 0 answers
Posted by Himanshu Tariyal 6 years, 1 month ago
- 0 answers
Posted by Abhishek Marvolo 6 years, 1 month ago
- 1 answers
Sia ? 3 years, 5 months ago
Both / and % are two different operators used in Java. These operators are mathematical operators and both have different uses. / Only perform the division operation in mathematics and returns results as the quotient, while % is known as modulus. / divides and returns the answer.
Posted by Anchal Bhardwaj 6 years, 2 months ago
- 0 answers
Posted by Daanish Anwar 6 years, 2 months ago
- 1 answers
Sia ? 3 years, 5 months ago
Posted by Sanjana Chawla 6 years, 2 months ago
- 1 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Richa Sharma 6 years ago
1Thank You