Hello I want to display the name of the activities according to the order of their addition in the feed (FeedId=incremented id) and with a preselected team number however the order in the subquery is not respected.
MariaDB [database]
select name from activity where id=(select ActivityId from feed where TeamId=16 order by FeedId);
I tried to take out the order by but without success. Someone would have any idea ?
1条答案
按热度按时间u3r8eeie1#
Try using inner join, something like this