2. Isi tanggal kadaluarsa
update barang set
tglkadaluarsa='2016/10/10'
where kdbrg='001'
update
barang set tglkadaluarsa='2015/01/10' where kdbrg='002'
update
barang set tglkadaluarsa='2016/12/05' where kdbrg='003'
update
barang set tglkadaluarsa='2016/10/06' where kdbrg='004'
update barang set
tglkadaluarsa='2016/05/07'
where kdbrg='005'
3. Tampilkan isi tanggal kadaluarsa
select tglkadaluarsa from
Barang
4. Rubah tanggal kadalursa yang tahun 2016 menjadi
tahun 2017
5. Rubah tanggal kadaluarsa yang bulan mei, menjadi
bulan agustus
6. Edit tabel supplier, tambahkan 1 field jenis
produk
alter table supplier add jenisproduk varchar(50)
7. Isi jenis produk
update supplier set
jenisproduk='sabun
mandi' where kdsup='sup001'
update
supplier set jenisproduk='sabun mandi' where kdsup='sup002'
update
supplier set jenisproduk='sabun mandi' where kdsup='sup003'
update
supplier set jenisproduk='minuman' where
kdsup='sup004'
update
supplier set jenisproduk='minuman' where
kdsup='sup005'
update
supplier set jenisproduk='snack' where
kdsup='sup006'
update
supplier set jenisproduk='snack' where
kdsup='sup007'
update
supplier set jenisproduk='snack' where
kdsup='sup008'
update
supplier set jenisproduk='mie instan' where kdsup='sup009'
update supplier set
jenisproduk='mie
instan' where kdsup='sup010'
8. Tampilkan semua jenis produk
select jenisproduk from
supplier
9. Hapus untuk jenis produk mie instan
delete from
supplier where jenisproduk = 'mie instan'
10. Rubah jenis produk dari sabun mandi menjadi
sabun cuci
update supplier set
jenisproduk='sabun
cuci' where jenisproduk='sabun mandi'
No comments:
Post a Comment