Re: Query optimize on large database
why not just:
SELECT d.owner_id, COUNT(*) AS kolvo
FROM data d
WHERE d.owner_id = @user_id
GROUP BY d.owner_id
?
I see no need to JOIN self here
Subject
Views
Written By
Posted
2086
July 13, 2016 01:40AM
1220
July 15, 2016 05:12PM
1208
July 16, 2016 04:15AM
1149
July 16, 2016 12:09PM
1199
July 16, 2016 12:36PM
1191
July 16, 2016 02:46PM
1232
July 17, 2016 11:22AM
1206
July 18, 2016 04:28AM
1104
July 18, 2016 08:40AM
Re: Query optimize on large database
1135
July 20, 2016 04:46AM
1167
July 20, 2016 08:06AM
1152
July 20, 2016 09:29AM
1139
July 21, 2016 04:35AM
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.