1. Home
  2. Explore
  3. Computer Science
  4. SQL Course Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

SQL Course Introduction

  • 35Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Database Fundamentals
A
is a collection of data stored in a format that can be easily accessed.

35 questions

  1. 1
    A
    _____
    is a collection of data stored in a format that can be easily accessed.
    Hint

    Think of a structured repository for storing information.

    Answer

    database

  2. 2
    The software application used to manage databases is called a
    _____
    .
    Hint

    It's an acronym that stands for a system that interacts with databases.

    Answer

    database management system (DBMS)

  3. 3
    In relational databases, data is stored in
    _____
    that are linked to each other using relationships.
    Hint

    Think of the structure that holds rows and columns.

    Answer

    tables

  4. 4
    Non-relational databases are also called
    _____
    .
    Hint

    This term literally means 'not only SQL'.

    Answer

    NoSQL

  5. 5
    SQL was originally called
    _____
    before being renamed due to a trademark conflict.
    Hint

    It stands for Structured English Query Language.

    Answer

    SEQUEL

  6. 6
    In a SELECT statement, the
    _____
    clause is used to specify which columns to retrieve.
    Hint

    This keyword is the first part of any query.

    Answer

    SELECT

  7. 7
    The
    _____
    clause in a SELECT statement specifies the table from which to retrieve data.
    Hint

    This keyword indicates the source of the data.

    Answer

    FROM

  8. 8
    To filter rows based on a condition, use the
    _____
    clause.
    Hint

    This clause comes after FROM.

    Answer

    WHERE

  9. 9
    The
    _____
    clause is used to sort the result set.
    Hint

    This clause typically appears at the end of a query.

    Answer

    ORDER BY

  10. 10
    To limit the number of rows returned by a query, use the
    _____
    clause.
    Hint

    This clause is often used for pagination.

    Answer

    LIMIT

  11. 11
    The
    _____
    keyword in a SELECT statement removes duplicate rows from the result.
    Hint

    It ensures each row is unique.

    Answer

    DISTINCT

  12. 12
    In a SELECT clause, you can rename a column using the
    _____
    keyword followed by the new name.
    Hint

    This creates an alias.

    Answer

    AS

  13. 13
    The
    _____
    operator checks if a value is within a range of values (inclusive).
    Hint

    It is used with AND.

    Answer

    BETWEEN

  14. 14
    The
    _____
    operator is used to compare a value to a list of possible values.
    Hint

    It is a shorthand for multiple OR conditions.

    Answer

    IN

  15. 15
    For more complex pattern matching, MySQL provides the
    _____
    operator.
    Hint

    It stands for regular expression.

    Answer

    REGEXP

  16. 16
    To check for missing values, use the
    _____
    operator.
    Hint

    NULL represents the absence of a value.

    Answer

    IS NULL

  17. 17
    The
    _____
    operator is used to combine rows from two or more tables based on a related column.
    Hint

    This operation links tables together.

    Answer

    JOIN

  18. 18
    An
    _____
    join returns rows that have matching values in both tables.
    Hint

    This is the default join if no type is specified.

    Answer

    INNER

  19. 19
    A
    _____
    join returns all rows from the left table, even if there are no matches in the right table.
    Hint

    It preserves all records from the first table listed.

    Answer

    LEFT

  20. 20
    When joining a table with itself, it is called a
    _____
    .
    Hint

    You use different aliases for the same table.

    Answer

    self join

  21. 21
    The
    _____
    keyword can simplify a join condition when the column names are identical in both tables.
    Hint

    It replaces the ON clause.

    Answer

    USING

  22. 22
    A
    _____
    join combines every row from the first table with every row from the second table.
    Hint

    This produces a Cartesian product.

    Answer

    CROSS

  23. 23
    The
    _____
    operator combines the results of two or more SELECT queries into a single result set.
    Hint

    It stacks rows vertically.

    Answer

    UNION

  24. 24
    To insert a new row into a table, use the
    _____
    statement.
    Hint

    This statement adds data to a table.

    Answer

    INSERT INTO

  25. 25
    The
    _____
    statement is used to modify existing rows in a table.
    Hint

    It changes data already stored.

    Answer

    UPDATE

  26. 26
    The
    _____
    statement removes rows from a table.
    Hint

    It deletes data permanently.

    Answer

    DELETE FROM

  27. 27
    A
    _____
    is a SELECT statement that is nested inside another SQL statement.
    Hint

    It is enclosed in parentheses.

    Answer

    subquery

  28. 28
    The
    _____
    function returns the auto-generated ID of the last inserted row.
    Hint

    It is commonly used after an INSERT to retrieve the new primary key.

    Answer

    LAST_INSERT_ID()

  29. 29
    The
    _____
    statement can be used to create a new table and copy data from an existing table in one step.
    Hint

    It combines table creation with data insertion.

    Answer

    CREATE TABLE AS

  30. 30
    In MySQL, a column with the
    _____
    attribute automatically generates a unique value for each new row.
    Hint

    It is often applied to primary key columns.

    Answer

    AUTO_INCREMENT

  31. 31
    A primary key consisting of multiple columns is called a
    _____
    primary key.
    Hint

    It combines two or more columns to uniquely identify a row.

    Answer

    composite

  32. 32
    The default sorting order in an ORDER BY clause is
    _____
    .
    Hint

    It arranges values from smallest to largest.

    Answer

    ascending (ASC)

  33. 33
    In the WHERE clause, the
    _____
    operator has higher precedence than OR.
    Hint

    It is evaluated before OR unless parentheses are used.

    Answer

    AND

  34. 34
    The
    _____
    data type is commonly used for variable-length strings in MySQL.
    Hint

    It stores characters efficiently.

    Answer

    VARCHAR

  35. 35
    To ensure that a column cannot have NULL values, the
    _____
    constraint is applied.
    Hint

    It forces a value to be provided.

    Answer

    NOT NULL

1 of 35
Question 1 of 35

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent