怎样能把这条在sqlserver运行的sql语句放在access里运行???
有表T
id Uid Str
1 5 aaa
2 5 bbb
3 5 ccc
4 6 ddd
5 6 eee
6 8 ggg
7 8 ttt
8 2 uuu
9 2 hhh
要得到结果
id Uid Str
9 2 hhh
1 5 aaa
4 6 ddd
6 8 ggg
8 2 uuu
2 5 bbb
5 6 eee
7 8 ttt
3 5 ccc
在sqlserver里下面这个可以
select a.* from @t a order by (select count(*) from @t b where b.Uid=a.Uid and b.str<a.str),a.uid
在access怎样写??