517-c-5111-RDBMS NOTES - 1 - 240707 - 092718
517-c-5111-RDBMS NOTES - 1 - 240707 - 092718
Advantages of Database
Sharing of Data : the users of the database can share the data among themselves
Data Integrity : Data integrity means that the data is accurate andconsistent in the database
Data Security : Only authorised users are allowed to access the database and their identity
is authenticated using a username and password
Privacy : The privacy rule in a database states that only the authorized users can access a
database according to its privacy constraints
Backup and Recovery : Database Management Systemautomatically takes care of
backup and recovery.
Data Consistency : Data Consistency means there should be multiple mismatching
copies of the same data.
Item : Employee
50,000
5. Key Field :- Key Field is a value in a Field that uniquely identifies the record. Eg.
E001 which is unique to every employee.
TABLE :- A table is a set of data elements that is organized using a model of vertical
columns and horizontal rows. Each row is identified by a unique key index or the key
field.
COLUMNS OR FIELD :- A column is a set of data values of a particular simple type, one for
each row of the table. For eg. Emp_Code , Emp_Name , Emp_Address etc.
ROWS OR RECORDS OR TUPLES :- A row represents a single, data items in a table. Each
row in a table represents a set of related data, and every row in the table has the
same structure.
PRIMARY KEY:- A primary key is a unique value that identifies a row in a table. These
keys are also indexed in the database, making it faster for the database to search a
record.
FOREIGN KEY:- The foreign key identifies a column or set of columns in one (referencing)
table that refers to a column or set of columns in another (referenced) table.
Candidate Key – All the field values that are eligible to be the primary key are the candidate keys for that table.
Such fields can neither be left blank nor can have duplicate values. So in the table Student Marks, Enrollment
Number and Roll Number both are candidate keys. •
Alternate Key – Out of the candidate keys, one or two are made as primary keys. The others are the alternate
keys. Hence, if Roll Number is made as the primary key, Admission Number is the Alternate key.