DBMS 6

DBMS 6

University

5 Qs

quiz-placeholder

Similar activities

WAN Sesi 1

WAN Sesi 1

1st Grade - University

10 Qs

Summer Code Camp - Lesson 1

Summer Code Camp - Lesson 1

University

10 Qs

The Language Sloth - HTML Pop Quiz

The Language Sloth - HTML Pop Quiz

7th Grade - Professional Development

10 Qs

PROSES DAN SINKRONISASI

PROSES DAN SINKRONISASI

University

10 Qs

EC335 - Quiz 1

EC335 - Quiz 1

University

10 Qs

C++ Array Quiz

C++ Array Quiz

University

10 Qs

Microsoft Word

Microsoft Word

University

10 Qs

PAW-Q1-2023

PAW-Q1-2023

University

10 Qs

DBMS 6

DBMS 6

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Raja K

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

(Applying) Write a SQL statement to create a table called "orders" with a primary key on the "order_id" column and a foreign key on the "customer_id" column, referencing the "customers" table.

CREATE TABLE orders (order_id INT PRIMARY KEY, customer_id INT, FOREIGN KEY (customer_id) REFERENCES customers(customer_id));
CREATE TABLE orders (order_id INT, customer_id INT PRIMARY KEY, FOREIGN KEY (customer_id) REFERENCES customers(customer_id));
CREATE TABLE orders (order_id INT PRIMARY KEY, customer_id INT, FOREIGN KEY (order_id) REFERENCES customers(customer_id));
CREATE TABLE orders (order_id INT, customer_id INT, PRIMARY KEY (order_id), FOREIGN KEY (customer_id) REFERENCES customers(customer_id));

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Applying a ____________ function to a column in a SELECT statement calculates the average value of that column.

COUNT
AVG
MAX
MIN

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following SQL commands is used to remove a table from the database?

DROP TABLE
DELETE FROM
REMOVE TABLE
ERASE TABLE

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The _______ clause is used to eliminate duplicate records from a result set.

DISTINCT
REDUCE
SORT
GROUP

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The _______ operator can be used to combine two or more SELECT statements into a single result set.

AND
OR
UNION
INTERSECT

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?