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
2969
November 15, 2016 02:37PM
Re: Optimize subquery, replace IN() with JOIN
1135
November 15, 2016 03:34PM
1406
November 15, 2016 04:25PM
1119
November 17, 2016 08:11PM
1083
November 22, 2016 02:44PM
1144
November 16, 2016 04:03AM
1142
November 16, 2016 12:51PM
1316
November 16, 2016 03:22PM
1106
November 16, 2016 04:44PM
934
December 27, 2016 05:32AM
1012
November 16, 2016 01:50AM
1083
November 16, 2016 04:01AM
1334
November 16, 2016 06:23AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.