我有以下两个表:
答案 0 :(得分:1)
aws autoscaling describe-launch-configurations --query "LaunchConfigurations[?contains(LaunchConfigurationName,'LC')].[LaunchConfigurationName]" --output text | xargs -I aws autoscaling delete-auto-scaling-group --auto-scaling-group-name
使用select *
from
(select member_no,download_date,startdate,enddate,status,
row_number() over(partition by member_no order by enddate desc) rownum
from member_download_details as dd
left join member_dimensions md
on(dd.member_no=md.member_no and download_date between startdate and enddate)
)
where rownum=1;
,我们可以轻松获得所需的结果,尝试一次以上。