Giter VIP home page Giter VIP logo

wdd-w3-rmotr-sakila's Introduction

rmotr sakila

Today we will practice how to make complex aggregation queries. For that we will be working with a well known testing database called sakila.

sakila describes the data model of a DVD rental store. It already provides both the DB schema and data. You will only need to concentrate in making queries and get statistics out of it.

sakila schema

To get a better understanding of how sakila DB looks like, you can take a look at this DB schema diagram:

sakila

Assignments

The goal of this group work is to implement the assignments listed in sakila/assignments.py. Each assignment will provide a docstring describing the queries you will need to implement.

The runtests command

As we don't want to loose the DB data while running regular Django test cases, we implemented a way around to evaluate if your assignment solutions are valid. In sakila/management/commands you will find a runtests custom command. That command is going execute each of the assignments you implemented, and will compare the result with the expected one. If all assignments are working well, you will see a message like All tests passing! in the terminal.

To run tests, just execute the runtests custom command, like this:

$ django-admin runtests

Make sure you have properly configured the PYTHONPATH and DJANGO_SETTINGS_MODULE env variables.

Add more assignments

We already provide a few assignments that you will need to implement. Even though, we also ask you to add a few more assignments with interesting queries or stats that you can imagine. You will need to add both the assignments and tests.

Read only

All the query tests we implemented are based in the initial status of the DB. If you write or remove data from it, they will probably start failing. Try to not perform any write action on the DB. Just use it to execute your read-only queries.

wdd-w3-rmotr-sakila's People

Contributors

martinzugnoni avatar corez92 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.