RE: Question about solving a query !

2002-10-09 Thread Jianliang Zhao
AIL PROTECTED]] Sent: Wednesday, October 09, 2002 8:45 AM To: [EMAIL PROTECTED] Subject: Question about solving a query ! Hello, I have a problem to treat a query with MySQL because MySQL does not permit nested SELECT clauses. The schema of the table is : Hospital num | name | c

RE: Question about solving a query !

2002-10-09 Thread Andrew Braithwaite
on about solving a query ! Hello, I have a problem to treat a query with MySQL because MySQL does not permit nested SELECT clauses. The schema of the table is : Hospital num | name | city| numbeds 10 | Clairval| Marseille

Re: Question about solving a query !

2002-10-09 Thread Michael T. Babcock
Myoung-Ah KANG wrote: >The query is: "For each city, what is the name of the hospital having the >highest number of beds ? ' . > >Select name From Hospital Where (city, numbeds) In >(Select city, MAX(numbeds) From Hospital Group By city); > > > "select name, city, max(numbeds) from

Question about solving a query !

2002-10-09 Thread Myoung-Ah KANG
Hello, I have a problem to treat a query with MySQL because MySQL does not permit nested SELECT clauses. The schema of the table is : Hospital num | name | city| numbeds 10 | Clairval| Marseille | 70 20 | Notre-Dame | Ma