我就想根据这个 CarBrand 来去掉重复数据 不知道可不可以》??帮忙看看代码
View Code
select distinct (t1.CarBrand), t1.id,
t1.CarName,t1.CarColor,t1.CarType,t1.CarNotes,
t1.CarState,t1.WingNum,t1.NumL,t1.SeatNum,t1.DangWei,
t1.CompanyId,t1.ShopsId,t1.Grade,t1.CarPrice,t1.FestivalPrice,
t1.WeekendPrice,t1.PrePrice,t1.Range,t1.ServicePrice,t1.OutRangePrice,
t1.OutTimePrice,t1.ProtectPrice,t1.IsOil,t1.IsDriver,t1.IsLuqiao,
t1.ServiceTime,t2.ShopName,t2.ShopAddress,t2.AreaCode,dbo.Fun_CarACityById(t2.CityCode) as CityCode,
dbo.FunCarBrandById(t1.CarBrand) as CarBrandName,t1.TJJG,t1.BegTime,t1.TJ,t1.Image,t1.EndTime
from CarInfo t1 left join CompanyShops t2 on (t1.ShopsId=t2.Id) order by t1.CarBrand
CarBrand 是数字。。。