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.
I think you can easily use .trim() to avoid it.
Wow, cool. And here I realized how sophisticated was my code without using the StringBuilder))).
Alright, so there should be 3 classes. Not clear, what the
Human
class should do beside of having two inner classes inside of it. Nor it is said what methods each class should contain if any.Please, fix the texting:
'subtract' should return a mimus b! - Expected: 6, instead got: 3
I believe,
mimus
should be replaced withminus
This comment is hidden because it contains spoiler information about the solution
I am not able to find the correct solution.
The query that goes inside the CROSSTAB function returns correct result (tried in pgAdmin RDMS), but when I wrap it into my general code, I am getting an error:
PG::SyntaxError: ERROR: return and sql tuple descriptions are incompatible
I can't see any contradictions to the PSQL documentation in my code. Can anyone tell me why may I be getting this error?
Thanks in advance!
This comment is hidden because it contains spoiler information about the solution
@Rainer, hey I keep getting the same issue too. My case is working (I have previously checked it on other solutions and in the DBMS tool as well), but the test mentioned by you is not passing and the '[no clan specified]' does not appear in the results. Did you manage to solve the issue?
I think, test cases for that check were just missing when you submitted solution.
@Voracious, I think the task is to create the table and then select a column from it with the string. At least this is how I am trying to implement it. It would be too easy to solve it if we would not have to return the table as well. Correct me someone if I am wrong. Would appreciate it.
How can one get a referral link? I can't find it anywhere.
@matt c, thanks for your reply. have already found the solution.
What's wrong with my code?
I am passing 51 test and still getting one error:
For some reason my resuld is outcoming into this mess:
got: [{:id=>1, :name=>"Shoes"}, {:id=>2, :name=>"Clothing"}, {:id=>3, :name=>"Jewelry"}, {:id=>4, :name=>"..., :name=>"Clothing"}, {:id=>3, :name=>"Jewelry"}, {:id=>4, :name=>"Tools"}, {:id=>5, :name=>"Home"}]
I have no idea why is it going like this. My code seems to be correct, but maybe there's a tiny mistake. Should we use GROUP BY or ORDER BY in the subsection?
Gosh, why do I always tend to complicate the things?!)))) The solution is sooo easy than I thought.
Loading more items...