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
2401
November 15, 2016 02:37PM
Re: Optimize subquery, replace IN() with JOIN
972
November 15, 2016 03:34PM
1112
November 15, 2016 04:25PM
953
November 17, 2016 08:11PM
930
November 22, 2016 02:44PM
941
November 16, 2016 04:03AM
966
November 16, 2016 12:51PM
1076
November 16, 2016 03:22PM
927
November 16, 2016 04:44PM
721
December 27, 2016 05:32AM
829
November 16, 2016 01:50AM
880
November 16, 2016 04:01AM
1037
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.