:10141;2000;"Star Trek: Voyager: Season 7"
 
:10141;2000;"Star Trek: Voyager: Season 7"
 
#How many movies, on a year by year basis, were released in the 1940s (years 1940 to 1949)? (don’t answer this question by listing the movies then counting the results!)  
 
#How many movies, on a year by year basis, were released in the 1940s (years 1940 to 1949)? (don’t answer this question by listing the movies then counting the results!)  
#:select year, count(*) from movie where year >=1940 and year <1950 group by year order by year
+
#*select year, count(*) from movie where year >=1940 and year <1950 group by year order by year
 
:1940;34
 
:1940;34
 
:1941;33
 
:1941;33
 
:1949;41
 
:1949;41
 
#Which movies, in alphabetical order, did member number 42 rate as a “5”?  
 
#Which movies, in alphabetical order, did member number 42 rate as a “5”?  
#:select * from movie inner join rating on (rating.movie = movie.id) where member = 42 and rating = 5 order by title
+
#*select * from movie inner join rating on (rating.movie = movie.id) where member = 42 and rating = 5 order by title
 
:113;2000;"Bruce Lee: A Warrior's Journey";113;42;5
 
:113;2000;"Bruce Lee: A Warrior's Journey";113;42;5
 
:13847;2001;"Donnie Darko: Director's Cut";13847;42;5
 
:13847;2001;"Donnie Darko: Director's Cut";13847;42;5
 
:37;1973;"Zatoichi's Conspiracy";37;42;5
 
:37;1973;"Zatoichi's Conspiracy";37;42;5
 
#Produce a table that lists every movie that has been rated, the rating that the movie got, and the name of the member that gave this rating.  
 
#Produce a table that lists every movie that has been rated, the rating that the movie got, and the name of the member that gave this rating.  
#:select *, rating from movie inner join rating on (movie.id = rating.movie) inner join member on (member.id = rating.member)  
+
#*select *, rating from movie inner join rating on (movie.id = rating.movie) inner join member on (member.id = rating.member)  
 
:30;2003;"Something's Gotta Give";30;42;4;42;"Doug";4
 
:30;2003;"Something's Gotta Give";30;42;4;42;"Doug";4
 
:37;1973;"Zatoichi's Conspiracy";37;6;4;6;"Natalie";4
 
:37;1973;"Zatoichi's Conspiracy";37;6;4;6;"Natalie";4
 
:5;4
 
:5;4
 
#What is the average rating of movies that begin with the word “Star”?  
 
#What is the average rating of movies that begin with the word “Star”?  
Unexpected non-MediaWiki exception encountered, of type "Error"
Error: Call to undefined function each() in /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php:374
Stack trace:
#0 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(480): _DiffEngine->_diag()
#1 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(291): _DiffEngine->_compareseq()
#2 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(175): _DiffEngine->diff_local()
#3 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(653): _DiffEngine->diff()
#4 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(820): Diff->__construct()
#5 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(1240): MappedDiff->__construct()
#6 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(1458): WordLevelDiff->__construct()
#7 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(952): TableDiffFormatter->_changed()
#8 /apps/xmlpipedb/biodb/fall2013/includes/diff/DairikiDiff.php(895): DiffFormatter->_block()
#9 /apps/xmlpipedb/biodb/fall2013/includes/diff/DifferenceEngine.php(765): DiffFormatter->format()
#10 /apps/xmlpipedb/biodb/fall2013/includes/diff/DifferenceEngine.php(655): DifferenceEngine->generateDiffBody()
#11 /apps/xmlpipedb/biodb/fall2013/includes/diff/DifferenceEngine.php(593): DifferenceEngine->getDiffBody()
#12 /apps/xmlpipedb/biodb/fall2013/includes/diff/DifferenceEngine.php(566): DifferenceEngine->getDiff()
#13 /apps/xmlpipedb/biodb/fall2013/includes/diff/DifferenceEngine.php(409): DifferenceEngine->showDiff()
#14 /apps/xmlpipedb/biodb/fall2013/includes/Article.php(725): DifferenceEngine->showDiffPage()
#15 /apps/xmlpipedb/biodb/fall2013/includes/Article.php(478): Article->showDiffPage()
#16 /apps/xmlpipedb/biodb/fall2013/includes/actions/ViewAction.php(37): Article->view()
#17 /apps/xmlpipedb/biodb/fall2013/includes/Wiki.php(427): ViewAction->show()
#18 /apps/xmlpipedb/biodb/fall2013/includes/Wiki.php(304): MediaWiki->performAction()
#19 /apps/xmlpipedb/biodb/fall2013/includes/Wiki.php(536): MediaWiki->performRequest()
#20 /apps/xmlpipedb/biodb/fall2013/includes/Wiki.php(446): MediaWiki->main()
#21 /apps/xmlpipedb/biodb/fall2013/index.php(59): MediaWiki->run()
#22 {main}