Basis Data - DDL & DML

Basis Data - DDL & DML

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Gabriella Ningsih

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

1.      Perintah SQL mana yang digunakan untuk menampilkan semua kolom dari sebuah tabel?

a. SHOW

b. DISPLAY

c. DESCRIBE

d. SELECT

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

2.      Perintah SQL mana yang digunakan untuk menyisipkan rekaman pada sebuah relasi?

a. INSERT

b. UPDATE

c. DELETE

d. SELECT

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

3.      Apa fungsi dari perintah SQL DELETE?

a. Menambah record baru ke dalam tabel

b. Mengubah data dalam tabel

c. Menghapus record dari tabel

d. Memilih data dari tabel

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

4.      Perintah SQL mana yang digunakan untuk memilih record berdasarkan kondisi tertentu?

a. SELECT

b. INSERT

c. DELETE

d. TRUNCATE

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

5.      Apa hasil dari query SQL berikut?

SELECT COUNT(*) FROM employees;

a. Jumlah total record dalam tabel "employees"

b. Jumlah kolom dalam tabel "employees"

c. Jumlah total record unik dalam tabel "employees"

d. Jumlah record yang memiliki nilai NULL dalam tabel "employees"

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

6.      Bagaimana cara menampilkan hanya record dengan nilai "active" pada kolom "status" dari tabel "users"?

a. SELECT * FROM users WHERE status = 'active';

b. SELECT * FROM users WHERE status != 'active';

c. SELECT * FROM users WHERE status LIKE 'active';

d. SELECT * FROM users WHERE status = 'Active';

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

7.      Apa fungsi dari perintah SQL UPDATE?

a. Menambah record baru ke dalam tabel

b. Menghapus record dari tabel

c. Memilih data dari tabel

d. Mengubah data dalam tabel

Create a free account and access millions of resources

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?