按区域取固定数据的值

 select  *
from
(
SELECT rid=ROW_NUMBER() over(partition by area order by area ),*
 from  B2C_Insurance.dbo.OutSide_TianJin
 where len(name) in(2,3)
 
 ) as a
 where  rid<=20  

你可能感兴趣的:(按区域取固定数据的值)