This commit is contained in:
Gwendal Roué committed 2018-02-23 08:49:50 +01:00
1 parent a5a3610bf6
commit fab37838b2
1 file changed
+1 -2
+1 -2
View File
@@ -4574,7 +4574,7 @@ A classical technique to avoid this ambiguity is to give each column a unique na
```sql
-- A classical technique
SELECT players.id AS players_id, players.name AS players_name, teams.id AS teams_id, teams.name AS teams_name, teams.color AS teams_color, teams.url AS teams_url, MAX(rounds.score) AS maxScore
SELECT players.id AS players_id, players.name AS players_name, teams.id AS teams_id, teams.name AS teams_name, teams.color AS teams_color, MAX(rounds.score) AS maxScore
FROM players
LEFT JOIN teams ON ...
LEFT JOIN rounds ON ...
@@ -4887,7 +4887,6 @@ struct Team: Decodable, RowConvertible, TableMapping {
var id: Int64
var name: String
var color: Color
var url: URL
}
struct Item: Decodable, RowConvertible {
var player: Player