
Database Section 6
Authored by Melanie Sirianni
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Cambridge Technicals L3 U2 Information Types
Quiz
•
12th Grade
10 questions
Microsoft Teams
Quiz
•
KG - 12th Grade
10 questions
PARTS OF MOTHERBOARD
Quiz
•
10th Grade
11 questions
Access
Quiz
•
10th Grade - University
10 questions
ICT SKILLS
Quiz
•
9th - 10th Grade
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
16 questions
Computer Network
Quiz
•
11th - 12th Grade
12 questions
Identity Theft
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade