asp.net GridView如何让头几条数据显示不同的颜色或图标
我正在做一个联赛的排名的东东,数据都取出了,想让前三名数据前加入金牌、银牌、铜牌,数据行同时显示不同的颜色,如何实现!我使用的SQL语句是:SELECTtop10sum(...
我正在做一个联赛的排名的东东,数据都取出了,想让前三名数据前加入金牌、银牌、铜牌,数据行同时显示不同的颜色,如何实现!我使用的SQL语句是:
SELECT top 10 sum(a.[Perf_Score]) as PerfScore,d.county_name
,b.[Branch_Name],c.[WorkerName]
FROM [Perf_Info] a inner join Branch_Info b ON (a.[Branch_Code]=b.[Branch_Code]) inner join Branch_Worker_Info c ON (a.WorkerID=c.WorkerID) INNER JOIN county_info d ON (a.County_ID=d.county_ID)
WHERE a.[Input_Date] BETWEEN '2014-06-01' AND '2014-06-19'
GROUP BY a.[WorkerID],c.[WorkerName],b.[Branch_Name],d.county_name
ORDER BY PerfScore desc 展开
SELECT top 10 sum(a.[Perf_Score]) as PerfScore,d.county_name
,b.[Branch_Name],c.[WorkerName]
FROM [Perf_Info] a inner join Branch_Info b ON (a.[Branch_Code]=b.[Branch_Code]) inner join Branch_Worker_Info c ON (a.WorkerID=c.WorkerID) INNER JOIN county_info d ON (a.County_ID=d.county_ID)
WHERE a.[Input_Date] BETWEEN '2014-06-01' AND '2014-06-19'
GROUP BY a.[WorkerID],c.[WorkerName],b.[Branch_Name],d.county_name
ORDER BY PerfScore desc 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询