Database Section 6

Database Section 6

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

CD 11 CHỦ ĐỀ F BÀI 6

CD 11 CHỦ ĐỀ F BÀI 6

11th Grade

12 Qs

Python Veri Tipleri

Python Veri Tipleri

10th Grade

15 Qs

IT Unit 2 (Databases) Part A

IT Unit 2 (Databases) Part A

11th - 12th Grade

15 Qs

CSF Midterm Prep

CSF Midterm Prep

9th - 12th Grade

19 Qs

SQL tesztkérdések 7.

SQL tesztkérdések 7.

12th Grade

9 Qs

2.5 Translators, Compilers & Interpreters

2.5 Translators, Compilers & Interpreters

12th Grade

15 Qs

App Lab

App Lab

9th Grade

15 Qs

Newsletters

Newsletters

9th - 12th Grade

16 Qs

Database Section 6

Database Section 6

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Melanie Sirianni

Used 2+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?