Search Header Logo

S3: DATABASES UP TO EQUI JOIN

Authored by Kieran Kyle

Computers

11th Grade

Used 1+ times

S3: DATABASES UP TO EQUI JOIN
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause is used to specify the condition for joining tables in the query?

SELECT

FROM

WHERE

JOIN

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the '=' operator in an Equi-Join?

To subtract values

To compare values for equality

To multiply values

To divide values

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following SQL statement do?

SELECT name, age FROM Students;

Displays all fields in the Students table.

Displays the name and age fields from the Students table.

Deletes the name and age fields in the Students table.

Creates a new table with name and age fields.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following query do?

SELECT * FROM Teachers WHERE subject = 'Maths';

Displays all teachers except those who teach Maths.

Updates the subject field for teachers to 'Maths'.

Displays all fields for teachers who teach Maths.

Deletes teachers who do not teach Maths.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to add a new student with a name of "Alice" and an age of 15 to the Students table?

ADD INTO Students VALUES ("Alice", 15);

INSERT INTO Students VALUES ("Alice", 15);

INSERT INTO Students (name, age) VALUES ("Alice", 15);

INSERT name = "Alice", age = 15 INTO Students;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL query updates the price of a product in the Products table to 9.99 for a product with the productID of 101?

UPDATE price SET Products = 9.99 WHERE productID = 101;

UPDATE Products SET price = 9.99 WHERE productID = 101;

CHANGE price TO 9.99 WHERE productID = 101 IN Products;

SET price = 9.99 IN Products WHERE productID = 101;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the following SQL query?
DELETE FROM Orders WHERE orderID = 123;

Removes the Orders table from the database.

Deletes all orders except the one with orderID 123.

Deletes the order with orderID 123 from the Orders table.

Deletes the orderID field from the Orders table.

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?