1. Home
  2. Explore
  3. Computer Science
  4. SQL for Data Analysis

Study methods

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

SQL for Data Analysis

  • 30Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: SQL Basics
SQL stands for
Query Language.

30 questions

  1. 1
    SQL stands for
    _____
    Query Language.
    Hint

    The full name of SQL describes how data is organized.

    Answer

    Structured

  2. 2
    A database is a collection of
    _____
    that have relationships.
    Hint

    Think of a spreadsheet-like structure where data is stored in rows and columns.

    Answer

    tables

  3. 3
    The acronym RDBMS stands for
    _____
    Database Management System.
    Hint

    This type of DBMS organizes data into related tables.

    Answer

    Relational

  4. 4
    In SQL Server, the
    _____
    edition can be used for business purposes but is limited to 10 GB database size and 4 cores.
    Hint

    This edition is free and suitable for learning, but has restrictions.

    Answer

    Express

  5. 5
    The graphical front-end tool for writing queries against SQL Server is called
    _____
    (abbreviated SSMS).
    Hint

    This tool provides a user interface to manage SQL Server instances.

    Answer

    SQL Server Management Studio

  6. 6
    In Object Explorer, clicking the
    _____
    icon allows you to connect to additional servers.
    Hint

    It resembles an electrical plug symbol.

    Answer

    plug

  7. 7
    The default schema name in SQL Server is
    _____
    .
    Hint

    This stands for 'database owner' and is the default schema for user-created tables.

    Answer

    dbo

  8. 8
    The process of breaking data into separate tables to avoid repetition is called
    _____
    .
    Hint

    It reduces data redundancy and improves data integrity.

    Answer

    normalization

  9. 9
    A
    _____
    is the minimum number of columns that uniquely identifies a record in a table.
    Hint

    It ensures each row can be uniquely identified, often a single ID column.

    Answer

    primary key

  10. 10
    In the SQL query SELECT * FROM dbo.customers, the '*' symbol is called a
    _____
    and returns all columns.
    Hint

    It stands for all columns in the table.

    Answer

    wildcard

  11. 11
    To get a list of unique customer names, you add the keyword
    _____
    after SELECT.
    Hint

    It eliminates duplicate rows from the result set.

    Answer

    DISTINCT

  12. 12
    To rename a column header in the result set, you use the keyword
    _____
    followed by the alias.
    Hint

    It assigns a temporary name to a column in the output.

    Answer

    AS

  13. 13
    To limit the number of rows returned, you use the keyword
    _____
    before the column list.
    Hint

    It restricts the result set to the first N rows.

    Answer

    TOP

  14. 14
    The clause used to filter rows based on a condition is
    _____
    .
    Hint

    It specifies the criteria that rows must meet to be included.

    Answer

    WHERE

  15. 15
    To sort results in ascending order, you use the clause ORDER BY followed by the column name and optionally the keyword
    _____
    .
    Hint

    Sorting from smallest to largest or A-Z.

    Answer

    ASC

  16. 16
    To find customers whose name begins with 'A', you use the operator
    _____
    with the pattern 'A%'.
    Hint

    It allows pattern matching with wildcards.

    Answer

    LIKE

  17. 17
    To check if a value is within a range (inclusive), you use the operator
    _____
    .
    Hint

    It tests whether a value falls between two specified values.

    Answer

    BETWEEN

  18. 18
    To test if a column value matches any value in a list, you use the operator
    _____
    .
    Hint

    It is a shorthand for multiple OR conditions.

    Answer

    IN

  19. 19
    To combine two conditions where both must be true, you use the logical operator
    _____
    .
    Hint

    It ensures all conditions are satisfied.

    Answer

    AND

  20. 20
    To specify the order of evaluation in a WHERE clause, you use
    _____
    .
    Hint

    They group conditions together.

    Answer

    parentheses

  21. 21
    The default join type in SQL Server, which returns only rows with matching values in both tables, is
    _____
    .
    Hint

    It combines rows from two tables based on a related column.

    Answer

    INNER JOIN

  22. 22
    A
    _____
    join returns all rows from the left table and matching rows from the right table; if no match, NULLs appear.
    Hint

    It preserves all rows from the first table listed.

    Answer

    LEFT OUTER JOIN

  23. 23
    In a JOIN clause, the condition that links the tables is specified using the keyword
    _____
    .
    Hint

    It defines how the tables are related, typically using primary and foreign keys.

    Answer

    ON

  24. 24
    To count the number of rows in a result set, you use the aggregate function
    _____
    .
    Hint

    It returns the number of items in a group.

    Answer

    COUNT

  25. 25
    To calculate the total of a numerical column, you use the aggregate function
    _____
    .
    Hint

    It adds up all values in a column.

    Answer

    SUM

  26. 26
    To group rows that have the same values in specified columns, you use the clause
    _____
    .
    Hint

    It is often used with aggregate functions to create summary reports.

    Answer

    GROUP BY

  27. 27
    The function
    _____
    returns the current date and time in SQL Server.
    Hint

    It is a nondeterministic function that gets the system timestamp.

    Answer

    GETDATE()

  28. 28
    To add or subtract time intervals from a date, you use the function
    _____
    .
    Hint

    It modifies a date by a specified number of units (e.g., days, months).

    Answer

    DATEADD

  29. 29
    Comments in SQL can be written using two dashes (--) or using
    _____
    for multi-line comments.
    Hint

    This is similar to comments in many programming languages.

    Answer

    /* */

  30. 30
    The visual tool that helps you build queries by dragging and dropping tables and columns is called the
    _____
    .
    Hint

    It can be accessed by right-clicking in the query editor.

    Answer

    Query Designer

1 of 30
Question 1 of 30

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent