Search Header Logo

Inner Joins- MySql

Authored by RAYMOND YC

Instructional Technology

9th Grade

Used 2+ times

Inner Joins- MySql
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is an InnerJoin??

This Join returns all rows from the left table, and the matching rows from the right table.

This Join creates a new table by combining rows that have matching values in two or more tables.

This Join is a method of combining two or more tables so that the result includes unmatched rows of one of the tables, or of both tables

This Join is similar to left joins except they return all rows from the table in the RIGHT clause and only matching rows from the table in the FROM clause.

2.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Which of the following SQL commands performs an INNER JOIN?

SELECT Column_list

FROM TABLE1

INNER JOIN TABLE2

ON Table1.ColName = Table2.ColName

SELECT column_name(s) FROM table1 FULL OUTER JOIN table2 ON table1.column_name = table2.column_name WHERE condition;

SELECT column_name(s) FROM table1 RIGHT JOIN table2 ON table1.column_name = table2.column_name;

SELECT column_name(s) FROM table1 LEFT JOIN table2 ON table1.column_name = table2.column_name;

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which keyword is commonly used to perform an INNER JOIN in MYSQL?

OUTER

WHERE

JOIN

INNER

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

In a scenario where table A has 100 rows and table B has 80 rows, and there are 60 matching rows, how many rows will be returned by an inner join?

60

80

100

140

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

When using an INNER JOIN, what happens if there are no matching rows between the tables?

The query returns an error

The query returns all rows from both tables

The query returns an empty result set

The query returns only the rows from the left table

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How Many Tables Can You Innner Join?

As many as you want, as long as thier records have matching values.

Only two

It depends

Don't Know

7.

MULTIPLE CHOICE QUESTION

1 min • 7 pts

Media Image

Select the appropriate command to create a new table with columns Item name, Item unit, company name, and company city. The inner join is based on the company IDs from both tables.

SELECT foods.item_name,foods.item_unit,

company.company_name,company.company_city

FROM foods

INNER JOIN company

ON foods.company_id =company.company_id;

SELECT foods.company-id,foods.item_unit,

company.company_id,company.company_city

FROM foods

INNER JOIN company

ON foods.company_id =company.company_id;

SELECT foods.item_name, company.item_unit, company.company_name, foods.company_city FROM foods INNER JOIN company ON foods.company_id = company.company_id;

SELECT foods.item_name, company.item_unit, company.company_name, foods.company_city FROM foods INNER JOIN company ON foods.company_id = company.company_id;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Instructional Technology