UH SQL Dasar Mengelola Tabel

UH SQL Dasar Mengelola Tabel

1st Grade

10 Qs

quiz-placeholder

Similar activities

Kewarganegaraan Digital

Kewarganegaraan Digital

1st Grade

15 Qs

Spreadsheet Basics

Spreadsheet Basics

KG - 5th Grade

10 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

Object Oriented Programming

Object Oriented Programming

1st Grade

15 Qs

Web Development

Web Development

1st - 12th Grade

10 Qs

Banco de dados - SQL

Banco de dados - SQL

1st Grade

10 Qs

QUIZ ANALISIS & ESTIMASI BIAYA PART 2

QUIZ ANALISIS & ESTIMASI BIAYA PART 2

1st Grade

13 Qs

HTML Assessment 1

HTML Assessment 1

1st - 3rd Grade

10 Qs

UH SQL Dasar Mengelola Tabel

UH SQL Dasar Mengelola Tabel

Assessment

Quiz

Computers

1st Grade

Practice Problem

Hard

Used 63+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Isikan lah sebuah record ke dalam tabel barang seperti tampilan berikut : KODE_BARANG NAMA_BARANG SATUAN_BARANG STOK_BARANG KPR-1 KULKAS BUAH 20

insert into barang values('KPR-01','KULKAS','BUAH','20');
insert into_barang values('KPR-01','KULKAS','BUAH','20');
insert barang_values('KPR-01','KULKAS','BUAH','20');
insert into barang values(KPR-01,KULKAS,BUAH,20);
insert into barang values(KPR-01,KULKAS,BUAH,20)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Salah satu contoh data manipulation language

ALTER
TABLE
CHAT
SELECT
REPORT

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Ubah lah tabel barang pada kolom nama barang dari TELEVISI menjadi MONITOR

SQL> update to barang set nama_barang='MONITOR' where nama_barang='TELEVISI';
SQL> update from barang set nama_barang='MONITOR' where nama_barang='TELEVISI';
SQL> update barang set nama_barang='MONITOR' where nama_barang='TELEVISI';
SQL> update table barang set nama_barang='MONITOR' where nama_barang='TELEVISI';
SQL>delete from barang set nama_barang='MONITOR' where nama_barang='TELEVISI';

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Hapuslah pada field MONITOR pada kolom nama_barang pada tabel barang

SQL> delete from barang where NAMA_BARANG='MONITOR';
SQL> delete from table barang where NAMA_BARANG='MONITOR';
SQL>delete on barang where NAMA_BARANG='MONITOR';
SQL>delete on table barang where NAMA_BARANG='MONITOR';
SQL> delete from barang where NAMA_BARANG='MONITOR

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Cari kode_brg untuk semua barang yg berhasil dijual oleh lebih dari seorang salesman :

Select kode_brg From Pengiriman Order By kode_brg Having Sum(*)>1
Select kode_brg From Pengiriman Grup By kode_brg Having Sum(kode_sales)>1
Select kode_brg From Pengiriman Order By kode_brg Having Count(*)>1
Select kode_brg From Pengiriman Group By kode_brg Having Count(kode_sales)>1
Select kode_brg From Pengiriman Group By kode_brg Having Count(kode_sales)>=1

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Cari nama salesman yg berlokasi di Jakarta dan status lebih besar dari 30

Select Salesman From nama-sales Where kota=’Jakarta’ and status>30
Select Salesman From nama-sales Where kota=’Jakarta’ or status>30
Select nama_sales From Salesman Where kota=’Jakarta’ or status>30
Select nama_sales From Salesman Where kota=’Jakarta’ and status>30
Select Salesman From namasales Where kota=’Jakarta’ or status>30

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Ubah harga barang dengan kode P2 menjadi 1.5 kali dari harga lama :

Update Barang Set harga=1.5*harga Where kode_brg=’P2’
Replace Barang Set harga=1.5*harga Where kode_brg=’P2’
Replace Barang Where kode_brg=’P2’ Set harga=1.5*harga
Update Barang Where kode_brg=’P2’ Set harga=1.5*harga
Insert Barang Where kode_brg=’P2’ Set harga=1.5*harga

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?