这条SQL语句应该如何写

这条SQL语句应该怎么写
有一个表   t2
f1       f2       f3
1         1         1
1         1         2
1         2         1
1         2         2

我要返回该表中   f1,f2,f3都不相同的记录个数,如果f1,f2相同,则只累计f3为最大的记录

也就是说只取
select   f1,f2,max(f3)   from   t1   group   by   f1,f2
然后返回   记录数为   2
请问获取记录数的这个语句怎么写(不要用RecordCount属性哈)

------解决方案--------------------
利用子查询了

------解决方案--------------------
create table #1123 (a int,b int,c int)
insert into #1123
select 1,1,1 union all
select 1 , 1, 2 union all
select 1 , 2 , 1 union all
select 1 , 2 , 2
drop table #1

select count(*) from
(select a,b,max(c) as c from #1123 group by a,b)as ttt
------解决方案--------------------
总不结帐就真没人帮你了