17. Having Clause IN SQL | SQL Tutorial
SQL HAVING Clause Explained: Filter Aggregated Data! In this video, learn how to use the HAVING clause in SQL to filter grouped data after applying aggregate functions like SUM(), COUNT(), and AVG(). ππ‘ β What is the HAVING Clause? The HAVING clause filters the results of aggregate functions (like totals and averages) used with the GROUP BY clause. It works similarly to the WHERE clause, but HAVING is used to filter aggregated data. Examples of HAVING Clause Usage Want more similar videos- hit like, comment, share and subscribe β€οΈDo Like, Share and Comment β€οΈ β€οΈ Like Aim 5000 likes! β€οΈ βββββββββββββ Please like & share the video. βββββββββββββ script CREATE TABLE CUSTOMERS ( ID INT NOT NULL, NAME VARCHAR (20) NOT NULL, AGE INT NOT NULL, ADDRESS CHAR (25), SALARY DECIMAL (18, 2), PRIMARY KEY (ID) ); INSERT INTO CUSTOMERS VALUES (1, 'Ramesh', 32, 'Ahmedabad', 2000.00), (2, 'Khilan', 25, 'Delhi', 1500.00), (3, 'Kaushik', 23, 'Kota', 2000.00), (4, 'Chaitali', 25, 'Mumbai', 6500.00), (5, 'Hardik', 27, 'Bhopal', 8500.00), (6, 'Komal', 22, 'Hyderabad', 4500.00), (7, 'Muffy', 24, 'Indore', 10000.00), βββββββββββββ AWS DATA ENGINEER : https://www.youtube.com/playlist?list=PLOlK8ytA0MghpdMjb0m9zu1v9s_qbRP0q Azure data factory : https://youtube.com/playlist?list=PLOlK8ytA0MgguN5XidtQXbILxwCdJCUJE&si=iEICXHP80zGchUYh Azure data engineer playlist : https://youtube.com/playlist?list=PLOlK8ytA0MghBrzu0i6WlTBdoO1WdwV_e SQL PLAYLIST : https://www.youtube.com/playlist?list=PLOlK8ytA0MggGXIKmbfZ-_Xqcos3JKdV- PYSPARK PLAYLIST - https://www.youtube.com/playlist?list=PLOlK8ytA0MgjvOpd-088NRU_vTYw_aryH βββββββββββββ π£Want to connect with me? Check out these links:π£ Join telegram to discuss https://t.me/+Cb98j1_fnZs3OTA1 βββββββββββββ what we have covered in this video: βββββββββββββ Hope you liked this video and learned something new :) See you in next video, until then Bye-Bye! βββββββββββββ
Download
0 formatsNo download links available.