Reply to Re: get data from 2 tables, 1 is a count

Your name:

Reply:


Posted by none on 10/14/42 11:30

On Thu, 27 Oct 2005 00:54:42 +0100, in alt.php.sql you wrote:


>What I have is
>select t1.count(*) as count,t2.*, from t1,t2 order by count
>
>But that gives me an error pointing to (*)
>
>Can anyone give me the proper syntax plus explanation.. please:)


damm forgot the where
ID=x

select t1.count(*) as count,t2.* from t1,t2 where t1.id=ID and
t2.id=ID order by count

[Back to original 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

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