合計ページ数を表示するには、以下のクエリで結果の合計数も取得する必要があります。どうやってやるの ?
ありがとうございました
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