Having Clause
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
CREATE TABLE TestTableHaving
(
COL1 CHAR(20),
COL2 INT
);INSERT INTO TestTableHaving VALUES('FistValue', 1),('SecondValue', 2),('ThirdValue', 2),('FourthValue', 3),('FifthValue', 4);SELECT * FROM TestTableHaving GROUP BY COL1, COL2 HAVING COL2 = 2;