You are here: PHP and MySQL question « PHP Programming Language « IT news, forums, messages
PHP and MySQL question

Posted by Marius III on 11/02/04 11:30

Hi there,

I am used to program with Delphi etc...

I get an error on the following query:

SELECT C.CityID, C.Description, COUNT(R.CityID) AS N FROM tblcities C
LEFT OUTER JOIN tblrentalswanted R ON C.CityID = R.CityID LEFT OUTER JOIN
tblprovinces P ON C.ProvinceID = P.ProvinceID WHERE N > 0 GROUP BY C.CityID
ORDER BY C.Description

The error is: "Unknown column in Where clause 'N' ".

It is self explanatory but why can I not do this.
What is the alternative to select all fields where aggregated field is
greater than certain condition?


Thanks alot!

BTW: Hope this newsgroup is suitable for my question.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация