最新回答 / weixin_慕工程1563154
https://vk.com/@712781708-89785https://vk.com/@712781708-89786https://vk.com/@712781708-89787https://vk.com/@712781708-89788https://vk.com/@712781708-89789https://vk.com/@712781708-89790https://vk.com/@712781708-89791https://vk.com/@712781708-89792https:/...
2016-09-06
select a.user_name,b.timestr,b.kills from user1 a join (select a.user_id,a.timestr,a.kills,(select count(1) from user_kills b where a.user_id = b.user_id and b.kills >= a.kills) as cnt from user_kills a group by user_id,timestr,kills having cnt = 1) b on a.id = b.user_id;
2016-08-15
select a.user_name,b.skill,c.skill
from user1 a
join user1_skills b on a.id = b.user_id and b.skill="念经"
join user1_skills c on b.user_id = c.user_id and c.skill="变化"
join user1_skills d on d.user_id = c.user_id and d.skill="腾云"
where b.skill_level > 0 and c.skill_level>0 and d.skill_level>0
from user1 a
join user1_skills b on a.id = b.user_id and b.skill="念经"
join user1_skills c on b.user_id = c.user_id and c.skill="变化"
join user1_skills d on d.user_id = c.user_id and d.skill="腾云"
where b.skill_level > 0 and c.skill_level>0 and d.skill_level>0
2016-04-03