ITPC 116 Section 6

Quiz
•
Computers
•
University
•
Hard
Vince Saturday
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The join column must be included in the select statement when you use the NATURAL JOIN clause.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following conditions will cause an error on a NATURAL JOIN?
When you attempt to use two tables that have a common field.
When the NATURAL JOIN clause is based on all columns in the two tables that have the same name.
If it selects rows from the two tables that have equal values in all matched columns.
If the columns having the same names have different data types.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A NATURAL JOIN is based on:
Columns with the same name and datatype
Columns with the same name
Columns with the same datatype and width
Tables with the same structure
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Given the following descriptions of the employees and jobs tables, which of the following scripts will display each employee's possible minimum and maximum salaries based on their job title?
SELECT employees.first_name, employees.last_name, employees.job_id, jobs.min_salary, jobs.max_salary
FROM employees
NATURAL JOIN jobs
USING (job_id);
SELECT first_name, last_name, job_id, min_salary, max_salary
FROM employees
NATURAL JOIN jobs;
SELECT employees.first_name, employees.last_name, employees.job_id, jobs.min_salary, jobs.max_salary
FROM employees
NATURAL JOIN jobs;
SELECT first_name, last_name, job_id, min_salary, max_salary
FROM employees
FULL JOIN jobs (job_id);
SELECT employees.first_name, employees.last_name, employees.job_id, jobs.min_salary, jobs.max_salary
FROM employees
NATURAL JOIN jobs ON (employees.job_title = jobs.job_title);
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which query represents the correct syntax for a left outer join?
SELECT companyname, orderdate, total
FROM customers
LEFT JOIN orders
ON customers.cust_id = orders.cust_id;
SELECT companyname, orderdate, total
FROM customers
OUTER JOIN orders
ON customers.cust_id = orders.cust_id;
SELECT companyname, orderdate, total
FROM customers
LEFT OUTER JOIN orders
ON customers.cust_id = orders.cust_id;
SELECT companyname, orderdate, total
FROM customers
LEFT OUTER orders
ON customers.cust_id = orders.cust_id;
6.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
A query is needed to display each department and its manager name from the above tables. However, not all departments have a manager but we want departments returned in all cases. Which of the following SQL: 1999 syntax scripts will accomplish the task?
SELECT departments.department_id, employees.first_name, employees.last_name
FROM employees
RIGHT OUTER JOIN departments
ON (employees.employee_id = departments.manager_id);
SELECT departments.department_id, employees.first_name, employees.last_name
FROM employees
LEFT OUTER JOIN departments
WHERE (employees.department_id = departments.department_id);
SELECT departments.department_id, employees.first_name, employees.last_name
FROM employees
FULL OUTER JOIN departments
ON (employees.employee_id = departments.manager_id);
SELECT departments.department_id, employees.first_name, employees.last_name
FROM employees , departments
WHERE employees.employee_id
RIGHT OUTER JOIN departments.manager_id;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following statement is an example of what kind of join?
SELECT car.vehicle_id, driver.name FROM car LEFT OUTER JOIN driver ON (driver_id) ;
Inner Join
Outer Join
Equijoin
Optimal Join
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
DDSQL-DP9-P10

Quiz
•
University
10 questions
J277 - 2.2 - The use of SQL to search for data

Quiz
•
10th Grade - University
9 questions
SQL MCQ

Quiz
•
University
15 questions
08.08.2025

Quiz
•
University
15 questions
Internet Basics

Quiz
•
University
15 questions
Тест SQL 401

Quiz
•
University
7 questions
Mini recapitulare - functii si proceduri

Quiz
•
University
11 questions
Chapter 8-1 (Docker)

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University