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. 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 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
Archived
This topic is now archived and is closed to further replies.