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.
Rejected some time ago.
One other benefit is that RANK is always 100% deterministic. If ties are possible in the window given to ROW_NUMBER, the way that the tie is broken is undefined behavior.
YES
I wish people would stop labeling bad code as "best practice"
Here is no sence to use CTE at all.
He's right, read the other note:
Very naive of you not to read instructions.
"There are no fractions of people. At the end of each year, the population count is an integer: 252.8 people round down to 252 persons."
OP solved it, closing
If someone want a link to the documentation about full text search and @@ operator: https://www.postgresql.org/docs/current/textsearch-intro.html#TEXTSEARCH-MATCHING
what is the benefit of using rank() vs row_num() ?
I enjoyed the NULLIF inside COALESCE. Congrats!
Rejecting because no random tests, while random tests are already avaialble in similar, C#-only kata here.
This comment is hidden because it contains spoiler information about the solution
From PostgreSQL 14 documentation, 7.2.5:
Currently, window functions always require presorted data, and so the query output will be ordered according to one or another of the window functions' PARTITION BY/ORDER BY clauses. It is not recommended to rely on this, however. Use an explicit top-level ORDER BY clause if you want to be sure the results are sorted in a particular way.
https://www.postgresql.org/docs/14/queries-table-expressions.html
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...