
статии
най-високо оценени статии:
Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'btbgnet_btbg.d.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SELECT d.label, d.id, (SELECT (SUM(selection)/COUNT(*)) FROM vote_users WHERE tp='article' AND vote=d.id) AS raiting FROM data d, vote_users v WHERE v.tp='article' AND d.id=v.vote GROUP BY d.label ORDER BY raiting DESC
SELECT d.label, d.id, (SELECT (SUM(selection)/COUNT(*)) FROM vote_users WHERE tp='article' AND vote=d.id) AS raiting FROM data d, vote_users v WHERE v.tp='article' AND d.id=v.vote GROUP BY d.label ORDER BY raiting DESC