¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

SQL joins

jlangford 12 preguntas

Hacer el test

Este test tiene tipos de pregunta que se abren en el reproductor de siempre.

Preguntas del test (12)

  1. 1A SQL JOIN clause is used to combine rows from two or more tables, based on a common field between them.
    1. AVerdadero
    2. BFalso
  2. 2The most common kind of SQL JOIN in an INNER JOIN.
    1. AVerdadero
    2. BFalso
  3. 3When two tables are joined, it it done by referring to their PRIMARY KEYS and FOREIGN KEYS
    1. AVerdadero
    2. BFalso
  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. AVerdadero
    2. BFalso
  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. AVerdadero
    2. BFalso
  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. AVerdadero
    2. BFalso
  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. AVerdadero
    2. BFalso

Información

Descripción
1 Web Development Test sobre SQL joins, creado por jlangford el 05/06/2016.
Idioma
English
Visitas
0
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?