为了显示总页码计数,我还需要在以下查询中检索结果总数。我怎样才能做到这一点 ?
谢谢
select
AvgLevel, TotalCount, PokemonId, Type1, Speed, MonsterTotalStats
from
(select
row_number() over (order by tblPokedex.PokemonId asc) rowNumber,
AvgLevel, TotalCount, tblPokedex.PokemonId,
Type1, tblPokedex.Speed, MonsterTotalStats
from
tblPokemonStats, tblAvailablePokemons, tblPokedex
left join
tblUsersPokemons on tblPokedex.PokemonId = tblUsersPokemons.PokemonId
where
tblPokemonStats.PokemonId = tblPokedex.PokemonId
and tblPokedex.Class = 'emissary'
group by
tblPokedex.PokemonId, tblPokedex.Type1, tblPokedex.Speed,
tblPokemonStats.AvgLevel, tblPokemonStats.TotalCount, MonsterTotalStats
) result
where
result.rowNumber > 0 and result.rowNumber < 101