News for hackers. Stuff that matters.
Re:Challenges students face when learning to work with relat... by myspy on Sunday August 29, 2021 @04:04PM (#28349991)
Something other which is hard is writing performant queries. Using statements with subqueries/in syntax for example.

And I always forget which join does what.

Re:Challenges students face when learning to work with relat... by AdrianB1 on Sunday August 29, 2021 @05:50PM (#28350784)
Remembering which join does what is easy: inner joins strictly joins the tables, left takes all on left (first table), right takes all on right (second table), outer (or cross) join are so rarely used you don't need to memorize.
Re:Challenges students face when learning to work with relat... by Semaphor on Monday August 30, 2021 @02:17AM (#28353197)
> outer (or cross) join are so rarely used you don't need to memorize.

I’d say they are more important to know than right joins.

Re:Challenges students face when learning to work with relat... by MeinBlutIstBlau on Sunday August 29, 2021 @05:56PM (#28350833)
same with the joins. on paper it makes sense, in practice it does not. if its more than a "select * from dbo.whatever where column abc = 'thing'" i have to refer back to notes and play with it.
Re:Challenges students face when learning to work with relat... by eurasiantiger on Monday August 30, 2021 @01:18AM (#28352992)
Basically inner/left/right is a choice on how you want your NULLs: do you want all the rows that match, all the rows on the left, or all the rows on the right?