DBMS 6

DBMS 6

University

5 Qs

quiz-placeholder

Similar activities

SYS 1591

SYS 1591

University

10 Qs

5.0 Database

5.0 Database

University

8 Qs

Midterm Exam IM2B

Midterm Exam IM2B

University

9 Qs

Database Quizz

Database Quizz

University

10 Qs

Kaun Banega Crorepati

Kaun Banega Crorepati

University

10 Qs

DIPLOMADO G2

DIPLOMADO G2

University

10 Qs

DBMS_4CSE1_MINOR1_EXAM_4-FEB-2021

DBMS_4CSE1_MINOR1_EXAM_4-FEB-2021

University

7 Qs

Perintah Join SQL

Perintah Join SQL

11th Grade - University

10 Qs

DBMS 6

DBMS 6

Assessment

Quiz

Computers

University

Hard

Created by

Raja K

FREE Resource

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