CDM
PDM
Logika pembuatan trigger
Create or update trigger trg_mhs
After insert on mahasiswa
I : integer // jumlah absent
Begin
If (mahasiswa.status=1)then // 1 artinya mahasiswa tersebut aktif atau cuti
I=Cek_jumlah_absent
If (I < 40) then
Insert into mhs_aktif
Else
Mhs_cuti.alasan=¡¨jumlah absent lebih dari 40¡¨
Insert into mhs_cuti
End if
Else
If (mahasiswa.status=2)then // 2 artinya mahasiswa tersebut aktif atau cuti
Insert into mhs_DO
Else
If (mahasiswa.status=3)then // 3 artinya mahasiswa tersebut aktif atau cuti
Insert into mhs_lulus
End if
End if
End if
End
function Cek_jumlah_absent
begin
i: integer
// I di isi oleh jumlah absent mahasiswa ³ baca dari table.sintak nya gmn ?
return i
end
create domain constraint
// nilai status hanya boleh 1,2,3
Pa saya minta bantuannya,saya baru belajar tentang oracle dan sintak-sintak
oracle saya tidak banyak tau.
Bisnis ruleS
dari status 1 bisa ke status 2 atau 3
dari status 2 tidak bias ke status 1 atau 3
dari status 3 tidak bias ke status 1 atau 2
Terima kasih
---------------------------------
Do you Yahoo!?
The New Yahoo! Movies: Check out the Latest Trailers, Premiere Photos and
full Actor Database.
[Non-text portions of this message have been removed]
--
-----------I.N.D.O - O.R.A.C.L.E---------------
Keluar: [EMAIL PROTECTED]
Website: http://indo-oracle.lizt.org (NEW)
-----------------------------------------------
Bergabung dengan Indonesia Thin Client User Groups,
Terminal Server, Citrix, New Moon Caneveral, di:
http://indo-thin.vze.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indo-oracle/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/