Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The second query is already written, the only thing you should do is complete the insert query.
I fail to see what's confusing there.
Bumping, because 3 years later it still hasn't been updated xD
Yes! It was a great refreser for the WHERE NOT for me too :)
So your statement does produce the correct results, they just aren't in the expected order, which isn't stated by the kata. I think the kata expects you to use only one
SELECT
statement. Because of the way your statement works, it will produce a different order of values than if you just did it in one select statement (specifically because of the twoGROUP BY
clauses, I think)In any case, try again with a single
SELECT
statement. Not only is it possible, it's more efficient.You could try using only one
SELECT
.This comment is hidden because it contains spoiler information about the solution