Re: Optimize subquery, replace IN() with JOIN
Yikes, who in the world wrote that unnecessarily baroque query?
SELECT a.id, a.title, a.alias
FROM content AS a
JOIN category_content_se AS b ON a.id = b.content_id
WHERE a.id=11430 AND a.content_typ = 'actual'
ORDER BY a.date_add DESC LIMIT 10 ;
If this doesn't return the desired results, please post Show Create table for the two tables plus enough Insert statements for them to demonstrate the problem.
Subject
Views
Written By
Posted
2373
November 15, 2016 02:37PM
Re: Optimize subquery, replace IN() with JOIN
957
November 15, 2016 03:34PM
1096
November 15, 2016 04:25PM
940
November 17, 2016 08:11PM
920
November 22, 2016 02:44PM
930
November 16, 2016 04:03AM
954
November 16, 2016 12:51PM
1063
November 16, 2016 03:22PM
911
November 16, 2016 04:44PM
708
December 27, 2016 05:32AM
814
November 16, 2016 01:50AM
867
November 16, 2016 04:01AM
1022
November 16, 2016 06:23AM
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.