先来一个错误语句。。
select * from [aa] where a1 in (select max(a2),a1 from [aa] group by a1 )我大体意思,
读取一个统计系统中 不重复的 IP 按照 最后时间排序,并显示出所有字段。。
高手请帮帮忙,,要求一行语句完成。。
select * from [aa] where a1 in (select max(a2),a1 from [aa] group by a1 )我大体意思,
读取一个统计系统中 不重复的 IP 按照 最后时间排序,并显示出所有字段。。
高手请帮帮忙,,要求一行语句完成。。
from [aa] t
where not exists(select 1 from [aa] where a1=t.a1 and a2>t.a2)