Jump to content

Talk:Having (SQL)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kayau (talk | contribs) at 13:36, 25 February 2013 (Combine this with GROUP BY: cmt). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconComputing Stub‑class
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StubThis article has been rated as Stub-class on Wikipedia's content assessment scale.
???This article has not yet received a rating on the project's importance scale.
Note icon
This article has been automatically rated by a bot or other tool as Stub-class because it uses a stub template. Please ensure the assessment is correct before removing the |auto= parameter.
WikiProject iconDatabases (inactive)
WikiProject iconThis article is within the scope of WikiProject Databases, a project which is currently considered to be inactive.

Combine this with GROUP BY

I think this article and GROUP BY should be combined because HAVING is only used with GROUP BY. --Whiteknox 13:11, 9 October 2006 (UTC)[reply]

That's probably a good idea. Oh, and thanks for fixing my typo at GROUP BY. -- CodeNaked 14:42, 9 October 2006 (UTC)[reply]
I agree as well.--Jirka6 (talk) 17:14, 14 February 2008 (UTC)[reply]
There are plenty of times at least in MySQL when a Having is useful without a Group By such as: Select a + b * c as D From E Having D > 1, Having in MySQL functions such that Select * from a having b = 1 is esentially the same as select * from (select * from a) as c where b = 1 —Preceding unsigned comment added by 66.173.15.10 (talk) 15:44, 10 November 2008 (UTC)[reply]
Cite http://dev.mysql.com/doc/refman/5.0/en/group-by-hidden-fields.html
How about an article on aggregating records? Kayau (talk · contribs) 13:36, 25 February 2013 (UTC)[reply]

Multiple conditions

I think there should be an example with multiple conditions (are they separated by ands or by commas?) --Jirka6 (talk) 17:14, 14 February 2008 (UTC)[reply]