You should not use natural join
. It makes the query quite unclear on what it is doing.
In any case, this code:
count(distinct grade > 17)
can only return 0
, or 1
, or 2
. Why? Because it is counting the distinct values of a boolean expression. And a boolean expression only has two values (plus NULL
).
Hence, it will never be equal to 13
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…