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

Quiz

SQL Queries

jlangford 18 Fragen

Quiz starten

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

Fragen in diesem 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. ARichtig
    2. BFalsch
  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%'

Informationen

Beschreibung
1 Web Development (SQL) Quiz am SQL Queries, erstellt von jlangford am 04/06/2016.
Sprache
English
Aufrufe
1
Schlagwörter
web developmentsql1
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck