evaluasi perintah sql - duniayublog.files.wordpress.com filethe image cannot be displayed. your...
TRANSCRIPT
EVALUASI PERINTAH SQL
Tuliskan NIM, Nama dan kelas
Soal : 20 soalSoal : 20 soal
Waktu : 45 menit
Bekasi, 21 Mei 2018
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.
1. Sebutkan perintah DDL dan fungsinya !
2. Sebutkan perintah DML dan fungsinya !
3. Sebutkan langkah-langkah masuk ke mysql !
4. Tampilkan daftar database yang ada pada mysql.5. Buat Database dengan nama “db_review”.6. Aktifkan database db_review, lalu buat satu buah tabel didalamnya.7. Table 1 – table siswa (nim (pk)/char/ 8, nama/varchar/35,
alamat/varchar/50, jk /varchar/10)alamat/varchar/50, jk /varchar/10)8. Lihat struktur tabel pada tabel siswa
9. Ubah field “nama” pada tabel siswa menjadi “nama_siswa”
type=”varchar” Size=”30”.
10. Ubah field “alamat” pada tabel siswa menjadi “almt_siswa” (Type
dan Size tidak berubah).
11. Hapus field “jk” pada tabel siswa.
12. Ubah nama tabel “siswa” menjadi “data_siswa”.
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.
13. Isikan data untuk tabel
data_siswa sebanyak 5
13. Tampilkan isi seluruh record pada tabel data_siswa.
14. Tampilkan isi record hanyanim denganalamat = “JAKARTA” .
NIM NAMA ALAMAT
12150001 SRI REJEKI JAKARTA
12163012 BUDI ANTONI BEKASI
12160001 PEACE JONI JAKARTA
12170003 DARREL BEKASI
11180067 ANELIEN TANGERANG
14. Tampilkan isi record hanyanim denganalamat = “JAKARTA” .
15. Tampilkan isi record, hanya dari record ke-1 hingga record ke-3, kemudian
urutkan berdasarkan NIM .
17. Tampilkan jumlah data dari isi record tabel data_siswa .
18. Ubah isi record untuk ALAMAT= “BEKASI”, menjadi “CIBITUNG”.
19. Hapus isi record dengan ALAMAT= “TANGERANG”
20. Hapus table data_siswa.