Ay Pe Why
This commit is contained in:
@@ -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;
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user