Search Header Logo

Basis Data

Authored by Darmawan Ajeh

Computers

10th - 12th Grade

Used 105+ times

Basis Data
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1. Cara menghapus table barang

A. drop table * barang;

B. drop table barang;

C. drop table barang;

D. drop table_barang;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2. Tamplikanlah seluruh field yang berada didalam tabel barang

A. select barang;

B. select *from barang;

C. select * barang

D. select * barang;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

3. Buat lah user baru pada table karyawan dengan user = sofyan dan password = sosa

A. SQL create user sofyan identified by sosa;

B. SQL> create user sofyan by sosa;

C. SQL> create user sofyan identified by sosa;

D. SQL> create user sofyan identified by sosa;

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4. Tampilkan last name dengan huruf capital dimana last name nya di awali dengan huruf ‘A’

A. SQL> select upper(last_name),salary from employees where last_name 'A%';

B. SQL> select upper(last_name),salary from employees where last_name like 'A%';

C. SQL> select upper(last_name),salary from employees where last_name like 'A';

D. SQL> select upper(last_name),salary from employees where last_name like 'A%;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

5. Buatlah kolom NIP pada table karyawan sebagai index?

A. SQL> create index karyawan nip idx on karyawan(nip);

B. SQL> create index karyawan_nip_idx on karyawan(nip)

C. SQL> create index karyawan_nip_idx on karyawan(nip);

D. SQL> create index karyawan_nip_idx karyawan(nip);

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

6. Hapus hak akses delete dari user sosa

A. Revoke delete on karyawan from sosa;

B. Revoke delete on karyawan sosa;

C. Revoke delete karyawan from sosa;

D. Revoke delete on karyawan from sosa

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

7. Buatlah kolom NIP sebagai primary key pada table karyawan

A. SQL> alter table karyawan add constraint pk_nip primary key nip;

B. SQL> alter table karyawan add constraint pk_nip primary key (nip)

C. SQL> alter table karyawan add constraint pk_nip primary key (nip);

D. SQL> alter table karyawan add constraint pk nip primary key (nip);

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?