The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
53 views

Avoiding performance hit from GROUP BY during FULLTEXT search?

Is there any clever way to avoid the performance hit from using group by during fulltext search? SELECT p.topic_id, min(p.post_id) FROM forum_posts AS p WHERE MATCH (p.post_text) AGAINST ('baby ...
0
votes
1answer
55 views

WITH ROLLUP WHERE NULL = x

I tried to find this question somewhere else on here, and found a couple that were similar to it -- but all the answers seemed pretty convoluted, and I think it was surprising to me because I just ...
1
vote
0answers
28 views

Repeated values in group_concat

I have two tables, first the table food and Second is Activity: INSERT INTO food (`id`, `foodName`) VALUES (1, 'food1'), (2, 'food2'), (3, 'food3'), (4, 'food4'), (5, ...
1
vote
0answers
177 views

MySQL GROUP BY and ORDER BY giving inconsistent results

I'm currently working with WordPress, and I've added a new meta value which is a number between 0 and 30. Zero is ignored and up to 30 need to be organised in order and only the latest (based on the ...
0
votes
0answers
34 views

Group by collection_item_id and order by products.weight

SELECT `products`.* FROM `products` INNER JOIN collection_items ON products.collection_item_id = collection_items.id WHERE `products`.`product_type_id` = 1 AND (products.status = ...