|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
HAVING question
Hello:
Does anyone know if it is possible to have to instiences of HAVING in a mysql query? "SELECT * FROM TABLE HAVING (THIS,THAT)" Would that be the correct way to do it? |
|
#2
|
||||
|
||||
|
RE: HAVING question
HAVING is like a WHERE clause but for aggregate columns.
For example, if you want to return a categories that appear at least 3 times, use something like: Code:
SELECT category FROM table_name GROUP BY category HAVING COUNT(*) >= 3 See MySQL's SELECT syntax page. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > HAVING question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|