<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Databases for Public Policy -  CAPP 30235 - University of Chicago</title>
    <description>Course site for Databases for Public Policy (CAPP 30235) in Fall 2015
</description>
    <link>https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/</link>
    <atom:link href="https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Tue, 10 Nov 2015 15:52:45 -0600</pubDate>
    <lastBuildDate>Tue, 10 Nov 2015 15:52:45 -0600</lastBuildDate>
    <generator>Jekyll v2.5.3</generator>
    
      <item>
        <title>HW 3, HW 4, and Office hours</title>
        <description>&lt;h1 id=&quot;office-hours&quot;&gt;Office Hours&lt;/h1&gt;
&lt;p&gt;Office hours tomorrow (11/1) will be 2-3. For the remainder of the class they will be Monday 2-3.&lt;/p&gt;

&lt;h1 id=&quot;hw3-sql-on-psql&quot;&gt;HW3 SQL on PSQL&lt;/h1&gt;
&lt;p&gt;HW3 is posted at https://classes.cs.uchicago.edu/archive/2015/fall/30235-1/psqlHW.pdf&lt;/p&gt;

&lt;h1 id=&quot;hw4-presentations&quot;&gt;HW4 Presentations&lt;/h1&gt;

&lt;p&gt;Pairs of students will &lt;strong&gt;both&lt;/strong&gt; give a single 12-15 minute presentation on a research paper.  Pay attention to dates below. You can use slides or the blackboard. Please present a summary of the paper, the interesting “take-away” of the paper (or lessons learned), and any possible concerns you may have.&lt;/p&gt;

&lt;p&gt;The assignments are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Mitsue Iwata - Bridgit Donnelly (Replicated Data Consistency Explained Through Baseball (11-17))&lt;/li&gt;
  &lt;li&gt;J.P. Heisel - Natnaell Mammo (A comparison of approaches to large-scale data analysis (11-19))&lt;/li&gt;
  &lt;li&gt;Lingwei Cheng  - Kyle Magida (Hive: a warehousing solution over a map-reduce framework (11-24))&lt;/li&gt;
  &lt;li&gt;Santiago Larrain - Trey Sands (OLTP Through the Looking Glass and What We Found There (12-1))&lt;/li&gt;
  &lt;li&gt;Xiaorui Tang - Christine Cook (Resilient Distributed Datasets: A Fault-Tolerant Abstraction for In-Memory Cluster Computing (12-3))&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Tue, 10 Nov 2015 06:00:00 -0600</pubDate>
        <link>https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/11/10/HW3.html</link>
        <guid isPermaLink="true">https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/11/10/HW3.html</guid>
        
        
        <category>class</category>
        
        <category>updates</category>
        
      </item>
    
      <item>
        <title>HW 2</title>
        <description>&lt;h1 id=&quot;hw2-er-modelling&quot;&gt;HW2 ER Modelling&lt;/h1&gt;

&lt;p&gt;HW2 is due 11/1 at 11:59 pm. Email digital submissions (e.g. draw ER diagram in powerpoint/open office/visio/etc or scan a nice hand drawn model) to
Adam and myself with a subject of [CAPPDB] HW2 Submission. Include your name in the submission file(s).&lt;/p&gt;

&lt;h2 id=&quot;problem-1-simple-movies-db&quot;&gt;Problem 1. Simple Movies DB&lt;/h2&gt;

&lt;p&gt;Build an ER model to capture the following requirements.  Explicit relationships are not given, you must determine the relationships,
cardinality, and participation requirements.&lt;/p&gt;

&lt;p&gt;A new app is interested in storing information about movies, actors, and studios that make movies. Design an ER diagram for the
following data requirements:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A movie has a title, run length in minutes, and a single genre (e.g. horror, comedy).&lt;/li&gt;
  &lt;li&gt;Movies have sequels.&lt;/li&gt;
  &lt;li&gt;An actor has a name, age, gender, and minimum salary. An actor must have been in at least one movie to be considered an actor.&lt;/li&gt;
  &lt;li&gt;A movie has a single director. Directors have name, age, and a favorite genre.  An actor cannot be a director.&lt;/li&gt;
  &lt;li&gt;A movie is produced by studios. Each studio has a name and zip code.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;problem-2-simple-movies-ii&quot;&gt;Problem 2. Simple Movies II&lt;/h2&gt;

&lt;p&gt;Modify the previous ER diagram such that:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A movie is produced by a studio, and has a list of producers. Each producer has a name and age.&lt;/li&gt;
  &lt;li&gt;In a given movie an actor, director, and producer can be the same person&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;problem-3-music-store&quot;&gt;Problem 3. Music Store&lt;/h2&gt;

&lt;p&gt;Design a ER diagram for a database for an application that sells digital albums and songs, and allows users to create playlists.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A song has a title, length, an artist (e.g. band or person), and a set of composers.&lt;/li&gt;
  &lt;li&gt;An artist has a name and a number of members.&lt;/li&gt;
  &lt;li&gt;A composer has a name and age. A composer must have written at least one song.&lt;/li&gt;
  &lt;li&gt;An album is composed of songs, an album cover (a string), and a track order (ie SongX is track 1. SongY is track 2…).&lt;/li&gt;
  &lt;li&gt;Songs have an individual price. Albums have a price that is cheaper than purchasing each song individually.&lt;/li&gt;
  &lt;li&gt;Users have names and email addresses.&lt;/li&gt;
  &lt;li&gt;Users make purchases of songs and albums.&lt;/li&gt;
  &lt;li&gt;Users make (ordered) playlists of songs.&lt;/li&gt;
  &lt;li&gt;Users can review (a score of 1-5) playlists or albums, but not songs. Reviews can also have a comment.&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 28 Oct 2015 07:00:00 -0500</pubDate>
        <link>https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/10/28/HW2.html</link>
        <guid isPermaLink="true">https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/10/28/HW2.html</guid>
        
        
        <category>class</category>
        
        <category>updates</category>
        
      </item>
    
      <item>
        <title>HW 1</title>
        <description>&lt;h1 id=&quot;hw1-on-relational-algebra-and-basic-sql&quot;&gt;HW1 on Relational Algebra and Basic SQL&lt;/h1&gt;

&lt;p&gt;HW is due 10/29 at 1:30 pm. All sections assume 6th edition of book.&lt;/p&gt;

&lt;h2 id=&quot;relational-algebra&quot;&gt;Relational Algebra&lt;/h2&gt;

&lt;p&gt;Read:
 - 6.1.3.3 (Assignment Operator)
 - 6.1.4.2 (Aggregation Operator)&lt;/p&gt;

&lt;p&gt;Exercises from book:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;6.10&lt;/li&gt;
  &lt;li&gt;6.11&lt;/li&gt;
  &lt;li&gt;6.13&lt;/li&gt;
  &lt;li&gt;6.14&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Basic SQL Exercises:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;3.11&lt;/li&gt;
  &lt;li&gt;3.12&lt;/li&gt;
  &lt;li&gt;3.13&lt;/li&gt;
  &lt;li&gt;3.14&lt;/li&gt;
  &lt;li&gt;3.15&lt;/li&gt;
  &lt;li&gt;3.16&lt;/li&gt;
  &lt;li&gt;3.17&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On SQL please:
 - use &lt;strong&gt;bold&lt;/strong&gt; or UPPERCASE for keywords (i.e. SELECT FROM WHERE AVG)
 - use a newline after major keyword line (ie select from where groupby)&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT name&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;FROM people&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;WHERE age=22 AND state = 'IL'&lt;/code&gt;&lt;/p&gt;
</description>
        <pubDate>Thu, 22 Oct 2015 07:00:00 -0500</pubDate>
        <link>https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/10/22/HW1.html</link>
        <guid isPermaLink="true">https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/10/22/HW1.html</guid>
        
        
        <category>class</category>
        
        <category>updates</category>
        
      </item>
    
      <item>
        <title>Welcome and HW 0!</title>
        <description>&lt;p&gt;Welcome to Databases for Public Policy.  Just as a quick note please by next class (10/1):&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Email aelmore@cs.uchicago.edu with an email subject of “[CAPPDB] subscribe”&lt;/strong&gt;; I will likely need to cancel and reschedule a class last minute in the upcoming weeks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Update on due date&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Read &lt;strong&gt;&lt;em&gt;by 10/6&lt;/em&gt;&lt;/strong&gt; &lt;a href=&quot;http://pages.cs.wisc.edu/~cs764-1/datamodel.pdf&quot;&gt;What Goes Around Comes Around by Stonebraker and Hellerstein&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By next week (10/6):&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Get Ubuntu 14.04+ running on bare metal or &lt;a href=&quot;https://www.virtualbox.org/wiki/Downloads&quot;&gt;VM&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Have the ability to install open source databases (psql and others).&lt;/li&gt;
  &lt;li&gt;Install Java 1.7+ and refresh yourself on Java.&lt;/li&gt;
  &lt;li&gt;Install git. Setup a github account. &lt;a href=&quot;https://help.github.com/articles/what-are-other-good-resources-for-learning-git-and-github&quot;&gt;Learn GIT&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sun, 27 Sep 2015 14:06:13 -0500</pubDate>
        <link>https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/09/27/welcome-to-class.html</link>
        <guid isPermaLink="true">https://www.classes.cs.uchicago.edu/archive/2015/fall/30235-1/class/updates/2015/09/27/welcome-to-class.html</guid>
        
        
        <category>class</category>
        
        <category>updates</category>
        
      </item>
    
  </channel>
</rss>
