Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using MySQL and sakila table, definitions, and download found here: https://dev.mysql.com/doc/sakila/en 1.Using the Sakila schema, produce two queries that identify the films each actor has

Using MySQL and sakila table, definitions, and download found here:

https://dev.mysql.com/doc/sakila/en

1.Using the Sakila schema, produce two queries that identify the films each actor has been in. List the films title, films release year, and actors last name

a.Use implicit inner join syntax across three tables in the first query.

b.Use two explicit inner join syntax in the second query.

Result Set Size: 5462

2.Using the Company schema, provide a query that lists all employees along with any dependents. Include employees without dependents in the result set.

List the employee first name, last name, ssn, and the dependents name and relationship if a dependent exists.

Use the explicit joins.

Result Set Size: 47

3.Using the Company schema, select the unique project numbers and project names where either the project departments manager is Freed or an employees last name is Freed.

Use explicit join notation where necessary.

Result Set Size: 2

Nested selects may be needed in this case.

4.Using the Company schema, list every project name and average employee salary for employees in the project.

Use explicit joins.

Note that the avg salary for project 61 (OperatingSystems) is 42,166.

Result Set Size: 11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions