Aais Week 1 Notes
Aais Week 1 Notes
Data redundancy and flat file problem (data ada multiple copy)
Issue: take extra storage, spent a lot on storage (ex: info B hv being put at 3 places of dept in slides)
: need to update banyak kali (B hv being put at 3 places of dept, so kene update 3 3 sekali, if one tak
update, nanti satu tu outdated, tak sync)
: info not being current (distribute to 3 ppl, but dorang tgh update, 3 orang buat benda sama at the same
time, mess up, ex: isi list name kat ws group)
: task data dependency ( data and task dia connected, user 1 nak data from program 3 (z) , user 1 kene
request from user 3 , if user 3 failed to provide, maybe because of task data dependency)
Ex : User 1 change the info of the item, so nanti user lain ada their own pov so masalah nanti mess up
DATABASE/data sharing approach (solvekan masalah flat file problem)
Only need 1 , save on storage, save on need for updating, so everyone get the same data Tak mess up,
solve task data dependency sebab dah tak perlu contact user 3 sebab dia dah ada access to the data ,
because data and task no longer dependent between each other
Advantage :
Disadvantage :
- Costly to implemented (sebab ada additional hardware, software, storage & network resources
required)
- Can only run in certain operating environment (may unsuitable for some system)
- So different from the file-oriented , the database approach requires training user (ex: inertia or
resistance)
Element of databased environment
Since databased can be access by many ppl , so there is an issue in internal control(security) and dbms
- Dbms ( to manage the database but when data is available to everyone, so we need to bring in
internal control
DBMS FEAUTRES:
1) Program development
2) Backup and recovery (duplicate of that data incase some other issue arise, to protect from data
loss, distruption)
3) Database access (who, when gonna access the data?)
4) User programs (when user want to access data (edit/update data) , they will interact with their
user program to let them know its updated)
5) Direct query
- Programming language use to define the databased (identify name and relay all data element,
record, and file
- D means design the 3 view based on data, record, file
- 3 view: 1) internal view : computer pov (how comp install data)
2) conceptual view[schema] : how data is connected, structured in logical view (how we pic the
data connected to each other) (one but very detail)
3) user view[subschema] : many view, different user, have different view
DML *data manipulation language
- Q for question
- So questioning the database(survey databased,but doesn’t change the data)
Relational model
ER DIAGRAM (NI YANG KITA GUNA UNTUK BUAT DATABASE) YANG TIME TABLE TU