0.0136 | SELECT dt.*,c.active_year,l.year,l.table_suffix, c.ctype, l.id as league_id,t.id as id,t.manager,t.name as nameOriginal,dt.id as teamId,cou.Name as cou_name,cou.Continent,cou.Region FROM `leagues_webci` as l INNER JOIN `teams` as t ON l.id = t.league_id INNER JOIN `datateams` as dt ON dt.id = t.teamId INNER JOIN `categories_webci` as c ON c.id = l.categoryId LEFT JOIN country cou ON LOWER(cou.Code2) = dt.CountryCode WHERE dt.basealias = 'Cd-Castellon' AND l.year = 2022 ORDER BY c.top DESC, c.ctype != 12 DESC, c.troncal DESC, l.end_date >= NOW() DESC, l.start_date <= NOW() DESC, l.year DESC, c.coefficient DESC, l.id ASC |
0.0020 | SELECT dp.nick, dp.fullname,rp.date_ini, rp.date_end FROM futbol.rel_people rp INNER JOIN futbol.datapeople dp on dp.id=rp.people_id WHERE rp.teamId=673 AND role_id=1 ORDER BY rp.date_ini DESC LIMIT 1 |
0.0020 | SELECT dp.nick, dp.fullname,rp.date_ini, rp.date_end FROM futbol.rel_people rp INNER JOIN futbol.datapeople dp on dp.id=rp.people_id WHERE rp.teamId=673 AND role_id=1 ORDER BY rp.date_ini DESC LIMIT 1 |
0.0019 | SELECT dp.nick, dp.fullname,rp.date_ini, rp.date_end FROM futbol.rel_people rp INNER JOIN futbol.datapeople dp on dp.id=rp.people_id WHERE rp.teamId=673 AND role_id=1 ORDER BY rp.date_ini DESC LIMIT 1 |
0.0019 | SELECT dp.nick, dp.fullname,rp.date_ini, rp.date_end FROM futbol.rel_people rp INNER JOIN futbol.datapeople dp on dp.id=rp.people_id WHERE rp.teamId=673 AND role_id=1 ORDER BY rp.date_ini DESC LIMIT 1 |
0.0112 | SELECT cat.logo,cat.official,cat.location,dt.nameShow,dt.basealias,t.teamId,l.year,t.qod,cat.coefficient,cat.active_year,cat.name,l.group_code,l.total_group,cat.alias,l.categoryId,l.year,l.id as league_id FROM datateams dt INNER JOIN teams t ON t.teamId = dt.id INNER JOIN leagues l ON l.id = t.league_id INNER JOIN categories cat ON cat.id = l.categoryId WHERE dt.id = '673' AND l.year = 2022 ORDER BY l.year DESC,cat.coefficient DESC |
0.0151 | SELECT SQL_NO_CACHE res.id as id, res.group_code, res.total_group, res.logo, res.alias FROM (SELECT ct.active_year, ct.id as id, l.year, l.end,l.group_code, l.total_group, ct.logo, ct.alias FROM categories AS ct INNER JOIN leagues AS l ON ct.id=l.categoryId AND ct.active_year=l.year INNER JOIN teams AS t ON l.id=t.league_id WHERE t.teamId = '673' AND ct.ctype!=12 GROUP BY ct.id ORDER BY ct.troncal DESC, ct.coefficient DESC) res WHERE res.year > 2020 |
0.0032 | SELECT t.id,t.teamId,t.total_players,dt.nameShow,dt.basealias FROM teams t INNER JOIN datateams dt ON t.teamId = dt.id WHERE t.league_id = 65506 ORDER BY dt.relations DESC, dt.nameShow ASC LIMIT 50 |
0.0022 | SELECT t.id,t.teamId,t.total_players,dt.nameShow,dt.basealias FROM teams t INNER JOIN datateams dt ON t.teamId = dt.id WHERE t.league_id = 62379 ORDER BY dt.relations DESC, dt.nameShow ASC LIMIT 50 |
0.0098 | SELECT t.id as team_id, ct.id, l.id as idLeague, l.year, ct.name, l.start_date, l.end_date
FROM categories AS ct
INNER JOIN leagues AS l ON ct.id=l.categoryId
INNER JOIN teams AS t ON l.id=t.league_id
WHERE t.teamId=673 AND l.year in (2021,2022,2023)
ORDER BY l.id DESC, l.year DESC ; |
0.0021 | SELECT ct.id, ct.alias, ct.name AS name, ct.active_year, ct.coefficient AS coefficient, l.id AS league_id, l.year, l.total_group
FROM categories AS ct
INNER JOIN leagues AS l ON ct.id=l.categoryId
WHERE l.id IN (71840,67960,67320,65506,57314)
ORDER BY ct.ctype != 12 DESC, ct.troncal DESC, ct.coefficient DESC, l.end_date >= NOW() DESC, l.start_date <= NOW() DESC,
l.year DESC,
ct.coefficient DESC, l.group_code ASC |
0.0054 | SELECT count(id) as num_players from rel_players WHERE league_id = 57314 AND teamId = 673 |
0.0037 | SELECT count(id) as num_players from rel_players WHERE league_id = 67960 AND teamId = 673 |
0.0075 | SELECT count(id) as num_players from rel_players WHERE league_id = 65506 AND teamId = 673 |
0.0036 | SELECT count(id) as num_players from rel_players WHERE league_id = 71840 AND teamId = 673 |
0.0427 | SELECT count(id) as num_players from rel_players WHERE league_id = 67320 AND teamId = 673 |
0.0092 | SELECT e.action,rp.player_id, count(e.action) as total, p.nick,p.name,p.last_name,p.alias,rp.team_id FROM `rel_players` rp INNER JOIN dataplayers p ON p.id = rp.player_id INNER JOIN events2022 e ON e.player_id = p.id AND e.league_id = 62379 WHERE rp.league_id = 62379 AND rp.teamId = 673 AND (e.action = 1 or e.action = 2 or e.action = 11 or e.action = 12 or e.action = 13) GROUP BY p.id ORDER BY total DESC LIMIT 30 |
0.0084 | SELECT e.action,rp.player_id, count(e.action) as total, p.nick,p.name,p.last_name,p.alias,rp.team_id FROM `rel_players` rp INNER JOIN dataplayers p ON p.id = rp.player_id INNER JOIN events2022 e ON e.player_id = p.id AND e.league_id = 62379 WHERE rp.league_id = 62379 AND rp.teamId = 673 AND (e.action = 4 or e.action = 5) GROUP BY p.id ORDER BY total DESC LIMIT 30 |
0.0079 | SELECT e.action,rp.player_id, count(e.action) as total, p.nick,p.name,p.last_name,p.alias,rp.team_id FROM `rel_players` rp INNER JOIN dataplayers p ON p.id = rp.player_id INNER JOIN events2022 e ON e.player_id = p.id AND e.league_id = 62379 WHERE rp.league_id = 62379 AND rp.teamId = 673 AND (e.action = 3 or e.action = 4) GROUP BY p.id ORDER BY total DESC LIMIT 30 |
0.0076 | SELECT e.action,rp.player_id, count(e.action) as total, p.nick,p.name,p.last_name,p.alias,rp.team_id FROM `rel_players` rp INNER JOIN dataplayers p ON p.id = rp.player_id INNER JOIN events2022 e ON e.player_id = p.id AND e.league_id = 62379 WHERE rp.league_id = 62379 AND rp.teamId = 673 AND (e.action = 22) GROUP BY p.id ORDER BY total DESC LIMIT 30 |
0.0075 | SELECT e.action,rp.player_id, count(e.action) as total, p.nick,p.name,p.last_name,p.alias,rp.team_id FROM `rel_players` rp INNER JOIN dataplayers p ON p.id = rp.player_id INNER JOIN events2022 e ON e.player_id = p.id AND e.league_id = 62379 WHERE rp.league_id = 62379 AND rp.teamId = 673 AND (e.action = 19) GROUP BY p.id ORDER BY total DESC LIMIT 30 |
0.0079 | SELECT e.action,rp.player_id, count(e.action) as total, p.nick,p.name,p.last_name,p.alias,rp.team_id FROM `rel_players` rp INNER JOIN dataplayers p ON p.id = rp.player_id INNER JOIN events2022 e ON e.player_id = p.id AND e.league_id = 62379 WHERE rp.league_id = 62379 AND rp.teamId = 673 AND (e.action = 18) GROUP BY p.id ORDER BY total DESC LIMIT 30 |