SQL JOINS

Quiz
•
Computers
•
University
•
Hard

Leandro Pajaro
Used 81+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Seleccione sentencia para listar todos los registros en los cuales num_books_read es mayor a 185
SELECT * from family_members WHERE num_books_read > 185
SELECT * family_members WHERE num_books_read > 185
SELECT * from family_members WHERE num_books_read = 185
SELECT * from family_members WHERE num_books_read >= 185
2.
FILL IN THE BLANK QUESTION
2 mins • 5 pts
Complete la sentencia para agregar FK iddepartamento a la tabla usuarios: ALTER TABLE usuarios ___ usuarios_fk ___ REFERENCES departamentos(id)
3.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Seleccione sentencia para listar todos los perros con menos de 50 cm
select * from friends_of_pickles where species='dog' and height_cm > 45
select * from friends_of_pickles where species='dog' and height_cm < 45
select * from friends_of_pickles where height_cm < 45
select * from friends_of_pickles species='dog' and height_cm < 45
4.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Seleccione sentencia para listar el promedio de estatura por género
select gender, avg(height_cm) promedio from friends_of_pickles group by height_cm
select gender, sum(height_cm) promedio from friends_of_pickles group by gender
select gender, avg(height_cm) promedio from friends_of_pickles group by gender
select height_cm, avg(height_cm) promedio from friends_of_pickles group by gender
5.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Seleccione sentencia para listos los registros que sean perros o que la estatura sea inferior a 45
SELECT * FROM friends_of_pickles WHERE height_cm <45
SELECT * FROM friends_of_pickles WHERE height_cm >45 OR species = 'dog'
SELECT * FROM friends_of_pickles WHERE height_cm <45 AND species = 'dog'
SELECT * FROM friends_of_pickles WHERE height_cm <45 OR species = 'dog'
6.
FILL IN THE BLANK QUESTION
2 mins • 5 pts
Complete la senencia para listar la cantidad de perror que hay en la tabla:
select ___ ___ friends_of_pickles where species ___
7.
FILL IN THE BLANK QUESTION
2 mins • 5 pts
Complete la sentencia para listar la máxima y mínima estatura: SELECT ___ ___ FROM friends_of_pickles
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
RDBMS

Quiz
•
University
15 questions
Chapter 6 - Unix II

Quiz
•
University
10 questions
MySQL1

Quiz
•
University
11 questions
@tbinh1768/TIN ĐS HK1

Quiz
•
11th Grade - University
11 questions
UAS Pemrograman Web

Quiz
•
University
12 questions
Câu hỏi về SQL

Quiz
•
11th Grade - University
10 questions
SQL Basic

Quiz
•
University
10 questions
Basis Data Kelas 12 RPL

Quiz
•
9th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade