MySQL Forums
Forum List  »  PHP

Re: Problem with SQL query :(
Posted by: Sebastian Maur
Date: January 23, 2014 01:18AM

Rick James Wrote:
-------------------------------------------------------
> Yes, I see that your original posting has no
> records with label=5.
>
> Let's see the whole SELECT statement.
>
> LEFT JOIN could have caused what you describe.


Sorry I ment 6 im just on phone, missclick

It was like:

SELECT id_marketplace FROM mpu AS a 
JOIN mpu AS b ON a.id_marketplace = b.id_marketplace
WHERE
a.label = 6 AND a.properties IN (5,35)
AND
b.label = 7 AND b.properties IN (7,8)


And it came

11
12
13
13



Edited 1 time(s). Last edit at 01/23/2014 01:25AM by Sebastian Maur.

Options: ReplyQuote


Subject
Written By
Posted
January 18, 2014 10:39PM
January 19, 2014 12:30PM
January 19, 2014 12:41PM
January 20, 2014 03:24PM
January 21, 2014 06:22PM
January 22, 2014 04:19PM
January 23, 2014 12:15AM
Re: Problem with SQL query :(
January 23, 2014 01:18AM
January 23, 2014 10:23AM
January 19, 2014 12:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.