Back
This commit is contained in:
@@ -194,7 +194,7 @@ app.post("/getHighestOffense", authenticate, async (req, res) => {
|
||||
const result = await pool.request()
|
||||
.input("amount", sql.Int, amount)
|
||||
.query(`
|
||||
SELECT TOP (@amount) Player.[Position], Player.PlayerName, Player.Team,
|
||||
SELECT TOP (@amount) Player.PlayerID, Player.[Position], Player.PlayerName, Player.Team,
|
||||
SUM(total_yards) AS TotalYards,
|
||||
SUM(passing_yards) AS PassingYards,
|
||||
SUM(rushing_yards) AS RushingYards,
|
||||
@@ -256,7 +256,7 @@ app.post("/getHighestPaydirt", authenticate, async (req, res) => {
|
||||
const result = await pool.request()
|
||||
.input("amount", sql.Int, amount)
|
||||
.query(`
|
||||
SELECT TOP (@amount) Player.[Position], Player.PlayerName, Player.Team,
|
||||
SELECT TOP (@amount) Player.PlayerID, Player.[Position], Player.PlayerName, Player.Team,
|
||||
SUM(total_yards) AS TotalYards,
|
||||
SUM(passing_yards) AS PassingYards,
|
||||
SUM(rushing_yards) AS RushingYards,
|
||||
|
||||
Reference in New Issue
Block a user