viphoian
14-01-16, 08:16 PM
E chạy query này vào sql 2000 nó bị lỗi, chạy trên sql 2008 vẫn bt ai giúp e với
CREATE VIEW [dbo].[Gens_Duprian]
AS
SELECT TOP (100) PERCENT Row_Number() OVER (ORDER BY Contribution DESC, Name ASC) AS Rank, Name, Family, Contribution
FROM dbo.Gens_Rank
WHERE (Family = '1')
ORDER BY Contribution DESC, Name ASC
CREATE VIEW [dbo].[Gens_Duprian]
AS
SELECT TOP (100) PERCENT Row_Number() OVER (ORDER BY Contribution DESC, Name ASC) AS Rank, Name, Family, Contribution
FROM dbo.Gens_Rank
WHERE (Family = '1')
ORDER BY Contribution DESC, Name ASC