2011-10-13 43 views

回答

1
select people.* from people 
join actions on actions.peopleID = people.id 
group by people.id 
having max(action.CreationDate) < people.AlterationDate 
0

尝试

select p.peopleid 
from actions a 
inner join people p on p.peopleid = a.peopleid 
group by p.peopleid 
having max (a.creationdate) < p.alterationdate 
相关问题