/*ALTER PROCEDURE [dbo].[WEB_PlayersOnline]*/
CREATE PROCEDURE [dbo].[WEB_PlayersOnline]
as
BEGIN
SELECT uc.LastUpdateDate, uc.Gamertag, uc.CustomerID, ud.CustomerID, ud.IsDeveloper, ud.AccountType From UsersChars as uc
JOIN UsersData as ud ON
uc.CustomerID = ud.CustomerID
WHERE DATEDIFF(MINUTE...