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

Test

D8

Ozaki Kester 19 preguntas

Hacer el test

Preguntas del test (19)

  1. 1Retrieve tutor's name, who have more than experience others along with their students name. Tables: office {id (PK), locations, name}, tutor {id (PK), name officeid (FK references office (id)), experience}, students{id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.
    1. Aselect t.name, s.name from tutor t join students s on t.id=s.tutorid where experience = (select max (experience) from tutor);
    2. Bselect t.name, s.name from tutor t join students s on t.id=s.id where experience = (select max (experience) from tutor);
    3. Cselect t.name, s.name, max(experience) from tutor t join students s on t.id=s.tutorid;
    4. Dselect t.name, s.name, max(experience) from tutor t join students s on t.id=s.tutorid
  2. 2convert students' name to upper letters. Tables: office {id (PK), locations, name}, tutor {id (PK), name, officeid (FK references office (id)), experience}, students {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.
    1. Aselect upper (name) from students;
    2. Bselect ucase (name) from students;
    3. Cselect Name from students;
    4. Dselect lower (name) from students;
  3. 3Retrieve student's name, which starts from A. Tables: office {id (PK), locations, name}, tutor {id (PK), name officeid (FK references office (id)), experience}, students{id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.
    1. Aselect name from students where name like 'a%';
    2. Bselect name from students where name like '%A%';
    3. Cselect name from students where name like 'A_%';
    4. Dselect name from students where name like 'A';
  4. 4Find an average scholarship of students. Tables: office {id (PK), locations, name}, tutor {id (PK), name officeid (FK references office (id)), experience}, students{id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.
    1. Aselect averg (scholarship) from students;
    2. Bselect av (scholarship) from students;
    3. Cselect avrg (scholarship) from students;
    4. Dselect avg (scholarship) from students;
  5. 5Retrieve quantity of students in the students table - students {id, name, scholarship, registereddate, tutorid}
    1. ASelect avg (id) from office;
    2. Bselect sum(id) from office;
    3. Cselect max(id) from office;
    4. Dselect count(id) from office;
  6. 6Retrieve all students name with the department name, but excluding department CSSE. Tables: office {id (PK), locations, name}, tutor {id (PK), name officeid (FK references office (id)), experience}, students{id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.
    1. Aselect s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id = t.officeid where o.name = 'CSSE';
    2. Bselect s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id = t.officeid group by o.name, s.name;
    3. Cselect s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id = t.officeid
    4. Dselect s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id = t.officeid where o.name <> 'CSSE';
  7. 7Which function is used to retrieve quantity of rows
    1. Asum
    2. Bmax
    3. Ccount
    4. Davg
  8. 8define inner join
    1. Areturns all rows from the left table (1) and from the right table(2)
    2. Breturns all rows from the right table(2), with the matching rows in the right table(2)
    3. Creturns all rows from the left table(1), with the matching rows in the right table(2)
    4. Dselects all rows from both tables as long as there is a match between the columns in both tables
  9. 9define right join
    1. Areturns all rows from the left table(1) and from the right table(2)
    2. Bselects all rows from both tables as long as there is a match between the columns in both tables
    3. Creturns all rows from the right table(2), with the matching rows in the left table(1)
    4. Dreturns all rows from the left table(1), with the matching rows in the right table(2)
  10. 10Define avg function
    1. AReturns the first value
    2. BReturns average value
    3. CReturns total value
    4. DConverts to lowercase

Información

Descripción
Test sobre D8, creado por Ozaki Kester el 15/01/2017.
Idioma
English
Visitas
11
Etiquetas
1
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?