
Database Section 6

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Melanie Sirianni
Used 2+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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?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 first_name, last_name, job_id, min_salary, max_salary
FROM employees
NATURAL JOIN jobs;
SELECT e.first_name, e.last_name, e.job_id, j.min_salary, j.max_salary
FROM employees e
NATURAL JOIN jobs j
USING (job_id);
SELECT e.first_name, e.last_name, e.job_id, j.min_salary, j.max_salary
FROM employees e
NATURAL JOIN jobs j
USING (job_id);
SELECT first_name, last_name, job_id, min_salary, max_salary
FROM employees e
FULL JOIN jobs j (job_id);
SELECT e.first_name, e.last_name, e.job_id, j.min_salary, j.max_salary
FROM employees e
NATURAL JOIN jobs j ON (e.job_title = j.job_title);
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is another name for a simple join or an inner join
Equijoin
Outer Join
Nonequijoin
Self Join
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
You need to join the EMPLOYEE_HIST and EMPLOYEES tables. The EMPLOYEE_HIST table will be the first table in the FROM clause. All the matched and unmatched rows in the EMPLOYEES table need to be displayed. Which type of join will you use?
An inner join
A right outer join
A cross join
A left outer join
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which select statement will return the last name and hire date of an employee and his/ her manager for employees that started in the company before their managers?
SELECT w.last_name, w.hire_date, m.last_name, m.hire_date
FROM employees w , employees w
WHERE w.manager_id = w.employee_id
AND w.hire_date < w.hire_date
SELECT w.last_name, w.hire_date, m.last_name, m.hire_date
FROM employees w , employees m
WHERE w.manager_id != m.employee_id
AND w.hire_date < m.hire_date
SELECT w.last_name, w.hire_date, m.last_name, m.hire_date
FROM employees w , employees m
WHERE w.manager_id = m.employee_id
AND w.hire_date > m.hire_date
SELECT w.last_name, w.hire_date, m.last_name, m.hire_date
FROM employees w , employees m
WHERE w.manager_id = m.employee_id
AND w.hire_date < m.hire_date
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which statement about a self join is true?
A self join must be implemented by defining a view
Table aliases cannot be used to qualify table names.
The NATURAL JOIN clause must be used.
Table aliases must be used to qualify table names.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following database design concepts do you need in your tables to write Hierarchical queries?
Arc
Recursive Relationship
Non-Transferability
Supertype
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A NATURAL JOIN is based on:
Columns with the same name
Columns with the same datatype and width
Columns with the same name and datatype
Tables with the same structure
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
SQL 3

Quiz
•
11th Grade
15 questions
Database quiz 3 SQL

Quiz
•
12th Grade
13 questions
bài 22 tin 11 kntt

Quiz
•
11th Grade
10 questions
quis GWE

Quiz
•
9th Grade
16 questions
Android Studio

Quiz
•
12th Grade
10 questions
National 5 Databases

Quiz
•
10th Grade
14 questions
mysql-Statements

Quiz
•
10th Grade
10 questions
CP1222-WEEK 1-2 QUIZ

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade