MySQL Forums
Forum List  »  Full-Text Search

Re: FULL TEXT + JOIN
Posted by: Luca Prete
Date: October 06, 2011 03:51AM

Just to let you know that I'm thinking a lot about it... I post you my first ""soultion"" that of course doesn't work for some reason...

SELECT u.id, u.name, u.surname, u.city, u.img, f.status FROM (
SELECT id, name, surname, city, img,
MATCH(name, surname) AGAINST('*m*' IN BOOLEAN MODE) AS importance
FROM users
WHERE MATCH(name, surname) AGAINST('*m*' IN BOOLEAN MODE)
ORDER BY importance DESC
) u RIGHT JOIN (
SELECT idReceive, status,
FROM friendships
WHERE MATCH(idRequest) AGAINST('54')
) f ON u.id=f.idReceive


Luca Prete

Options: ReplyQuote


Subject
Views
Written By
Posted
5495
October 06, 2011 03:18AM
Re: FULL TEXT + JOIN
2606
October 06, 2011 03:51AM
2140
October 11, 2011 08:58PM


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.