当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
link_able.sql 721 Bytes
一键复制 编辑 原始数据 按行查看 历史
monomania 提交于 2020-01-12 16:49 . 1.xxx
#用于查询稳定的场次
SELECT
ar.`MatchDate`,
ar.`AlFlag`,
ar.`PreResult`,
ar.`Result`,
ar.`HitCount`,
l.Name AS LeagueName,
mh.MainTeamId AS MainTeam,
mh.GuestTeamId AS GuestTeam,
mh.MainTeamGoals AS MainTeamGoal,
mh.GuestTeamGoals AS GuestTeamGoal
FROM
foot.t_league l,
foot.t_match_his mh,
foot.t_analy_result ar,
(SELECT
ar1.`Id`
FROM
foot.`t_analy_result` ar1
WHERE ar1.`MatchId` IN
(SELECT
temp.matchId
FROM
foot.`t_analy_result` temp
GROUP BY temp.`MatchId`
HAVING COUNT(1) >= 3)) temp
WHERE mh.LeagueId = l.Id
AND mh.Id = ar.MatchId
AND ar.`Id` = temp.id
ORDER BY ar.MatchDate DESC,
l.id ASC,
mh.MainTeamId ASC,
ar.`AlFlag` DESC
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化