select AssetCode[资产编码],(select CategoryName from t_AssetClass where id=Assetid)[资产类别].Utime[变动日期] from t_FixedCode
想获得不同AssetCode的最早一条记录..试过这样,但是因为select 嵌套了一个select ,导致出错..select AssetCode[资产编码],(select CategoryName from t_AssetClass where id=Assetid)[资产类别].Utime[变动日期] ,count(distinct AssetCode) from t_FixedCode group by AssetCode