Show HN: A midterm test on basic SQL for my journalism class
padjo.org
padjo.org
We're in a technological world now, and not knowing how to use that technology puts one at a severe disadvantage.
I'm very glad to see other fields start using technology and actually teaching it in the Universities.
I have a friend who is in the Political Science program at his University, and they are teaching everyone how to use the R programming language. He couldn't stop complaining until I just laid out everything he could do with it.
In general, I see a trend towards teaching data science and analytics to people who aren't software engineers. I think SQL is an excellent way to bring analytics skills to the masses (over python, R, java).
"Note: Alternatively, if you wanted to reduce the amount of Pivot Table work, you could've done the aggregations inside of SQL."
R isn't really "for CS students", it's for statisticians and analytics professionals.
Just like chemists often write their own chemical modelling programs, it takes a lot of domain-specific knowledge to craft the correct algorithms for things like this.
I see you have discussed GROUP BY. In that case, you should also talk about HAVING. It's just like WHERE, but it runs after grouping instead of before. It can be really useful, and a lot of people don't even know it's there.
http://blog.codinghorror.com/a-visual-explanation-of-sql-joi...
I haven't looked close enough at what you are doing or what they are doing to pretend to make a comparison, but I guess it isn't too risky to say that they are at least thinking about some of the same things you are.
By the way, maybe there are other courses/book/sets of exercises/whatever I could use to learn more about that non-technological, "liberal" side of journalism? I was always wondering what makes person a journalist, but unfortunately never achieved it myself.
Though note the class appears to be "COMM273D/Public Affairs Data Journalism," so the students enrolling presumably are willing to put in the effort required to learn a bit about SQL (I don't know if this approach would be as successful in a basic journalism course).
The most practical difference for me is that it's much easier for me to describe a data querying process through pseudo-SQL than it is to describe all the submenus and clicking and highlighting you have to do in a spreadsheet....the tradeoff being, you have to get past the wall of learning SQL syntax. But I was very surprised...the students picked it up very quickly, even a student-athlete who hasn't been able to come to a single class...(and no, I don't think someone is doing his homework for him, since I meet with him weekly and he's since been able to work on SQL and datasets on top of what I've assigned him)...
They're still a long ways from understanding SQL to the point of being able to administer a DB, but that's OK, the class is about querying and investigating data...and using SQL to the point where they can wrangle the data to analyze/visualize it in other software (such as a spreadsheet)