求一SqL语句-->飙马转移
NUM Name Age1 aa 1
1 aa 2
2 bb 1
2 bb 2
2 bb 3
现在我的目的是取得结果
NUM Name Age
1 aa 2
2 bb 3
这个Sql语句应该如何写呢?
2007-06-20 12:33
2007-06-20 13:12

2007-06-20 14:05

2007-06-20 15:02
2007-06-20 16:39
花花的方法 用 not exists
2007-06-20 18:03
花花的方法 用 not exists


现在知道那方法是可行的了

2007-06-20 20:53
select * from table a where not exists (select 1 from table where name=a.name and num=a.num and age>a.age)

2007-06-20 20:54

2007-06-21 13:09
2007-06-22 11:17