Thursday, 13 February 2014

Conceptual database design components .

reEntity objects for which the data is collected, like humans, a real physical object or just a concept. 

Example: the creation of individual entities Enternal Entity: an entity that dihunakan for exchanging data, but not stored in the database Attribute: unit facts about kira0kira specific entity. Relationship: an association / association between entities Business rule: policies, or procedures that organizations use the following standards and defining certain control over dat, n is often implemented in a database as a compositiolationship

Maximum cardinality :  bilangan maksimum , contoh satu entity boleh dikaitkan

Transferable : relationships may be transferred if the parents which may change from time to time.


Conditional in one direction : means that a corresponding record may or not be found on the optional side of the relationship

Conditional in both direction: means that corresponding record may or not be found on the optional side of the relationship

Mandatory in one direction: means that a corresponding must exist on the mandatory side of the relationship

Mandatory in both directions: : means that corresponding record must be found on both sides of the relationship

One-to-many: indicates that are record in one table may be related to many (usually0+) records in another table.

Many-to-many: this can be thought of as one-to-many relationship that goes in both directions; many-to-many relationships are not natively supported in relational databases, but there are ways to convert them into something that can be handled.

Intersection data: data that is associated with two related entities in a many-to-many relationship, and which only makes sense when associated with both related entities; intersection data can beplaced (mapped) into a separate table to help relational databases handle the many –to-many relationship

Recursive: refers to relationships between instances of the same entity type

ENTITY-RELATIONSHIP DIAGRAMS
Graphical data model
Entities are represented by rectangles
Unique identifier (primary key) located in rectangle at top of the entity rectangle it is a unique identifier for
  
EMPLOYEE ID
      Last Name
      FirstName
      HourlyRate
       Position
Logical database design components
·         Table: a 2-D logical structure like a grid where each row contains attributes about a single instance of the entity type the table represents , and each column represents a particular attribute
o   Entities are sometimes split into two tables
o   Different entities are sometimes merged into a single table (rare)
o   Entities are usually named using a plural , while tables are named in the
Column: the smallest named unit of data in a database
·         Columns must be given a data type.
·         Data types help the database store data efficiently
·         Data type restrict attribute values to the correct data type and provides a set of behaviors consistent with the specified data type (such as addition, subtraction. Etc. for numbers
·         Unfortunately, different vendors support differing zoos of data types.
Constraints: rules that restrictallowable data values
*      Primary key: one or more colums that uniquely identify a particular row in a table

Ø  The constraint is that duplicate values are not allowed in the primary key column(s) of a table
Ø  Primary keys are usually implemented as an index
Ø  An index speeds up searches

·         Foreign key: afield on the many-side side of a one-to-many relationship that  uniquely identifies one row in another table (usually by using the primary key in the latter table)
·         Referential constraints:

Ø  Can check for parent record when inserting new child record (using the child record’s foreign key to check for a matching parent record
Ø  Don’t allow modification of child record’s foreign key if the new value is not reprensented by an istance in the parent table
Ø  Can delete all matching child records when a parent tecord is deleted

·         Integrity constraints: used to make sure field (atrtribute) values that are invalid are not allowed

Ø  May check for a range of values, or specific valid values
Ø  May check for NOT  NULL

·         TRIGGERS: A TRIGGER IS APROGRAM STORED IN THE DATABASE THAT RUNS WHEN A SPECIFIC EVENT HAPPENS. Triggers can be used to validate data (among other things).
Surrogate key: a key used to replace what would be the natural key for an entity
Views : refers to the way different esers may see the same database differently
·         Views are stored queries (virtual tables)
·         Views can hide colums (cleaner , more secure)
·         Views can hide tables (cleaner, more secure)
·         Views can hide complex operations such as joins
·         Views may improve query performance

Tuesday, 11 February 2014

 

Mafaat database:

  1. adapun mafaat databaseialah sebagai kompenan utama data penting dalam sistem informasi
  2. menentukan kualiti informasi dengan cepat
  3. mengatasi dalam mengakses data
  4. menyusun format standard bagi sebuah data
  5. menentukan kualiti informasi cepat,tepat,berkait

Monday, 10 February 2014

                semalam aku ada bagi kt korg maksud bit,byte,file,record kn?? ari ni aku nk kasi kt korang maksud database plak>>>> :)

             Apakah pangkalan data (DB), DBMS dan DBS ?

Pangkalan data adalah satu koleksi maklumat yang disusun supaya ia boleh dicapai, diurus dan update.in satu paparan, pangkalan data boleh classficated Jenis accordingTo kandungan 
Sistem pengurusan pangkalan data (DBMS) adalah program perisian komputer yang direka trhe min menguruskan semua pangkalan data yang sedang memasang pada cakera keras atau rangkaian

Sunday, 9 February 2014

model hierarki database



hierarachy of database

bit:bit ialah unit trkecil data
byte:byte ialah kumpulan/koleksi bit
8bit=1byte
field:field ialah unit data yang mempunyai satu@lebih karakter,unit trkecil paling
brnilai
record:record ialah kumpulan/koleksi feild yg berkait
file:file ialah kumpulan/koleksi record yg berkait

-



binary number 

  binary number adalah Sistem nombor  yang sistematik untuk mewakili nombor dengan watak-watak simbolik dan menggunakan nilai asas untuk nombor kumpulan mudah dalam bentuk padat. Sistem nombor yang paling biasa adalah perpuluhan, yang mempunyai nilai asas 10, dan satu set simbolik watak 0, 1, 2, 3, 4, 5, 6, 7, 8, dan 9. Walau bagaimanapun, terdapat sistem nombor lain, dan mereka boleh menjadi lebih berkesan untuk menggunakan untuk tujuan tertentu. Sebagai contoh, kerana komputer menggunakan logik Boolean untuk melakukan pengiraan dan operasi, mereka menggunakan sistem nombor perduaan, yang mempunyai nilai asas 2.


kiraan bit

binary number


0=0
1=1
2=10
3=11
4=100
5=101
6=111
7=1000
8=1001
9=1011


ni semua aku amek kt http://kvkskpd.blogspot.com


BIT
The bit is represented by 0 for OFF or 1 for ON. It is a binary digit. It is the smallest unit of data the computer can store in a database.


BYTE
A byte is a collection of bits. Each byte consists of eight bits. Each byte represents a character.


FIELD
A field is a unit of data consisting of one or more characters (bytes). A field is the smallest unit of meaningful information in the database. Each field has a field name. The field name describes the data that should be entered into the field, such as StudentID (Student ID), Name, Address and MyKad Number.


RECORD
A record is a collection of related fields. Example : Each record stores data about a students. For example, a student record is a collection of fields about a student.


FILE
A file is a collection of related records. For example, a student file is a collection of students’ records.

Thursday, 6 February 2014

Litar bersepadu atau litar bersepadu monolitik (juga dirujuk sebagai IC, cip, atau mikrocip) adalah satu set litar elektronik pada satu plat kecil ("cip") daripada bahan semikonduktor, biasanya silikon. Ini boleh dibuat lebih kecil daripada litar diskret dibuat daripada komponen bebas.
Litar bersepadu yang digunakan dalam peralatan elektronik hampir semua hari ini dan telah merevolusikan dunia elektronik. Komputer, telefon bimbit, dan lain-lain peralatan rumah digital kini bahagian inextricable struktur masyarakat moden, dilakukan oleh kos yang rendah menghasilkan litar bersepadu.
IC boleh dibuat sangat padat, mempunyai sehingga beberapa bilion transistor dan komponen elektronik lain di kawasan seluas kuku. Lebar setiap baris menjalankan dalam litar boleh dibuat lebih kecil dan lebih kecil sebagai kemajuan teknologi;. Pada 2008 ia jatuh di bawah 100 nanometer dan pada tahun 2013 ia dijangka berada dalam puluhan nanometer

contah gambar



Terperinci sintetik litar bersepadu melalui empat lapisan antara sambungan tembaga planarized , turun ke polisilikon (merah jambu) , telaga ( kekelabuan ), dan substrat (hijau)
IC telah dibuat mungkin dengan penemuan eksperimen yang menunjukkan bahawa peranti semikonduktor boleh melaksanakan fungsi tiub vakum dan dengan kemajuan teknologi abad ke- pertengahan ke-20 dalam semikonduktor peranti fabrikasi. Integrasi jumlah yang besar transistor kecil ke dalam cip kecil adalah peningkatan yang besar ke atas perhimpunan manual litar menggunakan komponen-komponen elektronik diskret. Keupayaan litar bersepadu ini pengeluaran besar-besaran , boleh dipercayai, dan pendekatan bangunan -blok kepada reka bentuk litar memastikan penggunaan pesat litar bersepadu standard di tempat reka bentuk menggunakan transistor diskret.
Terdapat dua kelebihan utama IC lebih litar diskret : kos dan prestasi. Kos adalah rendah kerana cip , dengan semua komponen mereka, dicetak sebagai satu unit oleh photolithography bukannya dibina satu transistor pada satu masa. Tambahan pula , bahan yang kurang digunakan untuk membina IC mati dibungkus daripada membina sebuah litar diskret. Prestasi tinggi kerana komponen-komponen menukar dengan cepat dan menggunakan kuasa sedikit (berbanding dengan rakan-rakan diskret mereka) akibat daripada saiz yang kecil dan berdekatan komponen. Sehingga 2012, kawasan cip tipikal terdiri daripada beberapa milimeter persegi kepada kira-kira 450 mm2 , dengan sehingga 9 juta transistor per mm2