Computer Science · SQL Fundamentals

Computer Science — SQL Fundamentals

Practise the building blocks of relational queries: filtering, sorting, grouping, aggregation, and joining tables.

20 cardsBeginnerFoundational
A focused review

Topics covered

  • Tables and keys
  • SELECT and WHERE
  • Sorting and limiting rows
  • Grouping and aggregates
  • INNER and LEFT JOIN
SQLdatabasesSELECTjoinsPostgreSQL
Take a look inside

Card preview

Showing 5 of 20
Question 01In a relational database, what does a table represent?
Answer

A relation of records organized into rows and named columns; each row represents one record and each column a field.

Question 02What does SELECT do in a basic SQL query?
Answer

It chooses the columns or expressions to return in the query result.

Question 03What does FROM specify in a basic SELECT query?
Answer

The table or tables from which the query reads rows.

Question 04What does WHERE do?
Answer

It filters input rows to keep only those that satisfy a condition, before grouping and aggregation.

Question 05Write a query that returns the name of each active student, alphabetically.
Answer

SELECT name FROM students WHERE active = TRUE ORDER BY name;

Import the deck you downloaded

Import this deck into Rivio

The downloaded JSON uses Rivio's deck_name, question, and answer format. Rivio recognizes those fields and suggests them automatically.

  1. 1
    Download the JSON deck

    Save the file to your device.

  2. 2
    Open Rivio → Flashcards → Import Deck

    Choose the downloaded file and select a subject or deck destination.

  3. 3
    Check the import preview

    Question and answer fields are suggested for this format. Review the cards, then import.

  4. 4
    Start reviewing

    Open the imported deck in Rivio and practise recall.

The preview shows a sample of the deck. The download contains all 20 cards.

Get Rivio on Google Play

Sources for further study

Use these references to check definitions and connect the cards to your course material.