O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

SQL Queries

jlangford 18 perguntas

Fazer o quiz

Este quiz tem tipos de pergunta que abrem no player de sempre.

Perguntas do quiz (18)

  1. 1Complete the syntax needed to check the number of rows in a "movie" table:

    SELECT [blank_start]count(*)[blank_end] FROM movies
    1. Acount(*)
  2. 2How would you structure a query if you wanted to view two different columns (name and age) from the same table(employees)?

    SELECT [blank_start]name, age[blank_end] FROM employees
    1. Aname, age
  3. 3In many situations we're only interested in a subset of the data we have available. In order to be more specific in our queries we can use what operator after specifying the table?
    1. ASUBSET
    2. BWHERE
    3. CPARAMS
    4. DHOLDING
  4. 4What kind of syntax would we use to find out how many employees in our database have the name Joe?

    [blank_start]SELECT[blank_end] name [blank_start]FROM[blank_end] employees [blank_start]WHERE[blank_end] name = "Joe"
    1. ASELECT
    2. BFROM
    3. CWHERE
  5. 5If you wanted to check more than one conditional statement in a query string, what command would you use?
    1. APLUS
    2. BALSO
    3. CINCLUDING
    4. DAND
  6. 6what syntax would be used to find someone named "David" who was born after 1960 in a table called "employees"?

    [blank_start]SELECT[blank_end] names, birthdays [blank_start]FROM[blank_end] employees [blank_start]WHERE[blank_end] names = David [blank_start]AND[blank_end] birthdays > 1960;
    1. ASELECT
    2. BFROM
    3. CWHERE
    4. DAND
  7. 7If was only interested in searching for a portion of a name, what command would I use?
    1. ALIKE
    2. BINCLUDING
    3. CHOLDING
    4. DSIMILAR
  8. 8when calling the LIKE operator in a query string, we are able to get back values that may only include a portion of what we asked for.
    1. AVerdadeiro
    2. BFalso
  9. 9When using the LIKE operator, we must wrap our specific query in what syntax?
    1. ALIKE "selection"
    2. BLIKE '%selection%'
    3. CLIKE @selection
    4. DLIKE selection
  10. 10How would I structure a query statement to find all movies with a name that includes "crazy" in a table called "movies"?

    [blank_start]SELECT[blank_end] names [blank_start]FROM[blank_end] movies [blank_start]WHERE[blank_end] names [blank_start]LIKE[blank_end] [blank_start]'%[blank_end]crazy[blank_start]%'[blank_end]
    1. ASELECT
    2. BFROM
    3. CWHERE
    4. DLIKE
    5. E'%
    6. F%'

Informações

Descrição
1 Web Development (SQL) Quiz sobre SQL Queries, criado por jlangford em 04-06-2016.
Idioma
English
Visualizações
1
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?