One-day Databases and SQL workshop, University of Oslo

Oct 28, 2019

09:00–16:00

Instructors: Kyrre T. Låberg

Helpers: Dan Michael O. Heggø, Mads Baklien

General Information

Software Carpentry aims to help researchers get their work done in less time and with less pain by teaching them basic research computing skills. This hands-on workshop will cover basic concepts and tools, including program design, version control, data management, and task automation. Participants will be encouraged to help one another and to apply what they have learned to their own research problems.

For more information on what we teach and why, please see our paper "Best Practices for Scientific Computing".

Who: The course is aimed at graduate students and other researchers. You don't need to have any previous knowledge of the tools that will be presented at the workshop.

Where: Kristine Bonnevies hus, room 4436. Get directions with OpenStreetMap or Google Maps.

When: Oct 28, 2019. Add to your Google Calendar.

Requirements: Participants must bring a laptop with a Mac, Linux, or Windows operating system (not a tablet, Chromebook, etc.) that they have administrative privileges on. They should have a few specific software packages installed (listed below). They are also required to abide by Software Carpentry's Code of Conduct.

Accessibility: We are committed to making this workshop accessible to everybody. The workshop organizers have checked that:

Materials will be provided in advance of the workshop and large-print handouts are available if needed by notifying the organizers in advance. If we can help making learning easier for you (e.g. sign-language interpreters, lactation facilities) please get in touch (using contact details below) and we will attempt to provide them.

Contact: Please email contact-us@swcarpentry.uio.no for more information.


Surveys

Please be sure to complete this survey after the workshop.

Post-workshop Survey


Schedule

Day 1

09:00 Selecting Data, Sorting and Removing Duplicates, Filtering
10:30 Coffee
10:45 Calculating new values, Missing Data, Combining Data
12:00 Lunch break
13:00 Data Hygiene, Creating and Modifying Data
14:30 Coffee
14:45 Programming with Databases - Python/R (if sufficient interest and time)
16:00 Wrap-up

We will use this collaborative document for chatting, taking notes, and sharing URLs and bits of code.


Syllabus

Managing Data with SQL

  • Reading and sorting data
  • Filtering with where
  • Calculating new values on the fly
  • Handling missing values
  • Combining values using aggregation
  • Combining information from multiple tables using join
  • Creating, modifying, and deleting data
  • Programming with databases
  • Reference...

Setup

To participate in a Software Carpentry workshop, you will need access to the software described below. In addition, you will need an up-to-date web browser.

We maintain a list of common issues that occur during installation as a reference for instructors that may be useful on the Configuration Problems and Solutions wiki page.

SQLite

SQL is a specialized programming language used with databases. We use a graphical user interface called DB Browser for SQLite.

Windows

  1. Download and install DB Browser for SQLite (Standard installer for 64-bit Windows) from sqlitebrowser.org/dl/
  2. Run the installer. On the Shortcuts page, you might want to tick the "Desktop" and/or "Program Menu" checkboxes for "DB Browser (SQLite)". Otherwise, just go with the defaults.

macOS

  1. Download and install DB Browser for SQLite for macOS from sqlitebrowser.org/dl/

Linux

  1. See installation instructions for various distributions at sqlitebrowser.org/dl/.