GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

SQL joins

jlangford 12 Fragen

Quiz starten

Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.

Fragen in diesem Quiz (12)

  1. 1A SQL JOIN clause is used to combine rows from two or more tables, based on a common field between them.
    1. ARichtig
    2. BFalsch
  2. 2The most common kind of SQL JOIN in an INNER JOIN.
    1. ARichtig
    2. BFalsch
  3. 3When two tables are joined, it it done by referring to their PRIMARY KEYS and FOREIGN KEYS
    1. ARichtig
    2. BFalsch
  4. 4When you call a JOIN statement, you must also include the following command after the second table is defined.

    FROM table_1 JOIN table_2 "----"
    1. AWITH
    2. BTOGETHER WITH
    3. CALONG WITH
    4. DON
  5. 5To join a movies table and a genres table based on the genres id, what syntax would you use?

    [blank_start]SELECT[blank_end] movies.title, genres.title
    [blank_start]FROM[blank_end] movies [blank_start]JOIN[blank_end] genres [blank_start]ON[blank_end] movies.genres_id [blank_start]=[blank_end] genres.id;
    1. ASELECT
    2. BFROM
    3. CJOIN
    4. DON
    5. E=
  6. 6It is possible to alter the names of the columns using the AS statement.

    SELECT movies.name AS movie, genres.name AS genre
    1. ARichtig
    2. BFalsch
  7. 7Is the following JOIN statement correct?

    SELECT movies.title AS movie, genres.name AS genre
    FROM movies JOIN genres ON movies.genre_id, genres.id LIMIT 10;
    1. ARichtig
    2. BFalsch
  8. 8If you wanted to add a more specific filter to the following JOIN statement, what command would you use?

    SELECT movies.title, genres.name
    FROM movies JOIN genres ON movies.genre_id = genres.id
    [blank_start]WHERE[blank_end] genres.name = 'Horror' LIMIT 10;
    1. AWHERE
  9. 9You are limited to only joining two tables
    1. ARichtig
    2. BFalsch
  10. 10To join more than one table you have to create another JOIN statement that refers back to the original table

    SELECT movies.title AS movie, genres.name AS genre, studios.name AS studio
    FROM movies
    JOIN genres ON movies.genre_id = genres.id
    JOIN studios ON movies.studio_id = studios.id
    LIMIT 10;
    1. ARichtig
    2. BFalsch

Informationen

Beschreibung
1 Web Development Quiz am SQL joins, erstellt von jlangford am 05/06/2016.
Sprache
English
Aufrufe
0
Schlagwörter
web development1
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck