I've got this:
SELECT TOP 100
IDNum,
IDName,
Nation,
(SELECT
SUM(Loyalty)
FROM
USERDATA
WHERE
USERDATA.Knights = KNIGHTS.IDNum
AND USERDATA.Authority IN(1, 2)
) as ClanLoyalty
FROM
KNIGHTS
ORDER BY
ClanLoyalty DESC
but I want to exclude Knights
(21 and 25)
so knights IDNum
21 and 25 WONT be included in that query ?
How to exclude them ?