Re: [PHP-DB] Re: A complex query problem

2003-07-04 Thread Micah Stevens
MySQL version 4.x has Subquery support. On Fri July 4 2003 5:54 am, Nadim Attari wrote: > From MS-SQL Server Manual: > A subquery is a SELECT query that returns a single value and is nested > inside a SELECT, INSERT, UPDATE, or DELETE statement, or inside another > subquery. A subquery can be use

[PHP-DB] Re: A complex query problem

2003-07-04 Thread Nadim Attari
>From MS-SQL Server Manual: A subquery is a SELECT query that returns a single value and is nested inside a SELECT, INSERT, UPDATE, or DELETE statement, or inside another subquery. A subquery can be used anywhere an expression is allowed. Unfortunately you do not have Sub-queries in mySQL ... Try

SV: [PHP-DB] Re: A complex query problem

2003-07-04 Thread Henrik Hornemann
are using mysql this probably won't work. I think mysql doesn't like subselects. hth Henrik Hornemann > -Oprindelig meddelelse- > Fra: Jason Givhan [mailto:[EMAIL PROTECTED] > Sendt: 3. juli 2003 22:39 > Til: [EMAIL PROTECTED] > Emne: [PHP-DB] Re: A complex query

[PHP-DB] Re: A complex query problem

2003-07-03 Thread Jason Givhan
I’m sorry, let me clarify the problem: I have some schools with multiple highlights. I want to search for a school that has BOTH highlights ‘Sports’ AND ‘Graduation’. I can search for a school that has EITHER ‘Sports’ OR ‘Graduation’ using this query: SELECT schools.school_name, schools.sID F