User avatar
pathetic piss kitten @kitten@elizabeth.cat
5mo
SQL spot the issue
SELECT * FROM PostEntity

JOIN ProfileEntity ON PostEntity.authorId = ProfileEntity.profileId
LEFT JOIN PostEntity AS Quote ON PostEntity.quoteId = Quote.postId
LEFT JOIN ProfileEntity AS QuoteProfile ON Quote.authorId = QuoteProfile.profileId
LEFT JOIN PostEntity AS BoostedPost ON PostEntity.boostedPostId = BoostedPost.postId
LEFT JOIN ProfileEntity AS BoostedPostProfile ON BoostedPost.authorId = BoostedPostProfile.profileId

WHERE PostEntity.authorId = :authorId || BoostedPost.authorId = :authorId
ORDER BY PostEntity.createdAt DESC;
2
0
0
0
User avatar
Persephone @mindpersephone@spookygirl.boo
5mo
SQL - Answering quiz @kitten incorrect or?
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
5mo
SQL - Answering quiz @mindpersephone yes

too much
actual code in my mind ​:blobcatgiggle:​
1
0
1
0

User avatar
Persephone @mindpersephone@spookygirl.boo
5mo
SQL - Answering quiz @kitten the number of times I do that as I switch between the Python and typescript parts of the work repo is unreal.
0
0
1
0