warzone2100/data/stats-sql/queries/Red StructureMulti.sql

7 lines
532 B
SQL

SELECT DLookUp("[Research]![Deliverance Name]","[Research]","[Research]![ResearchID] = " & [Research ID]) AS Owner,
DLookUp("[Structures]![Structure Name]","[Structures]","[Structures]![StructureID] =" & [StructureID]) AS Structure,
[Redundant StrList].StructureID
FROM Research INNER JOIN [Redundant StrList] ON Research.ResearchID = [Redundant StrList].[Research ID]
WHERE (((Research.multiPlayer)=Yes))
ORDER BY DLookUp("[Research]![Deliverance Name]","[Research]","[Research]![ResearchID] = " & [Research ID]);