sseeley Posted July 3, 2010 Share Posted July 3, 2010 Can anyone help why I am getting this error? SELECT SUM(NUMBERTEAMS1) FROM ( SELECT tblteamentry.confirm1 AS NUMBERTEAMS1 FROM middlesexwingsports.tblteamentry WHERE tblteamentry.fkAgeGroupId = '11' AND tblteamentry.confirm1 = '1' ) Thanks in advance for any help. Quote Link to comment https://forums.phpfreaks.com/topic/206654-1248-every-derived-table-must-have-its-own-alias/ Share on other sites More sharing options...
Mchl Posted July 3, 2010 Share Posted July 3, 2010 SELECT SUM(NUMBERTEAMS1) FROM ( SELECT tblteamentry.confirm1 AS NUMBERTEAMS1 FROM middlesexwingsports.tblteamentry WHERE tblteamentry.fkAgeGroupId = '11' AND tblteamentry.confirm1 = '1' ) AS aliasForThisSubquery Quote Link to comment https://forums.phpfreaks.com/topic/206654-1248-every-derived-table-must-have-its-own-alias/#findComment-1080840 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.