This commit is contained in:
Gwendal Roué committed 2018-10-05 18:50:34 +02:00
1 parent 24e8ee2d00
commit 89054c8165
1 file changed
+4 -4
+4 -4
View File
@@ -1448,10 +1448,10 @@ struct AuthorInfo: Decodable, FetchableRecord {
// SELECT author.*,
// COUNT(DISTINCT book.rowid) AS bookCount,
// MIN(book.year) AS minBookYear
// MAX(book.year) AS maxBookYear
// AVG(book.price) AS averageBookPrice
// SUM(book.awards) AS sumBookAwards
// MIN(book.year) AS minBookYear,
// MAX(book.year) AS maxBookYear,
// AVG(book.price) AS averageBookPrice,
// SUM(book.awards) AS bookAwardsSum
// FROM author
// LEFT JOIN book ON book.authorId = author.id
// WHERE author.id = 1