Ay Pe Why

This commit is contained in:
RochesterX
2025-11-28 20:05:34 -05:00
parent 374ac4aff7
commit 5a8ad3a094
4 changed files with 7 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ app.post("/getHighest", authenticate, async (req, res) => {
const result = await pool.request()
.input("amount", sql.Int, amount)
.query(`
SELECT TOP (@amount) p.PlayerID, p.PlayerName, p.[Position], p.Team, TotalValue
SELECT TOP (@amount) p.PlayerID, p.PlayerName, p.[Position], p.Team, TotalValue, TrueAvgPerYear, Years
FROM Player AS p JOIN Contract AS c ON p.PlayerID = c.PlayerID
ORDER BY TotalValue DESC;
`);