0% found this document useful (0 votes)
8 views

Dbms

hope it is helpful

Uploaded by

Siddhi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Dbms

hope it is helpful

Uploaded by

Siddhi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Library Management System

Centralized College Database


Student Database Management
Online Retail Application Database
Inventory Control Management
Hospital Management System
Railway System Database
Payroll Management System
An SMS-based Remote Server Monitoring System
Blood Donation Database
Art Gallery Management Database
Cooking Recipe Portal
Carbon Emissions Calculator
A Voice-based Transport Enquiry System
Database Interfacing for LabVIEW Robotic Control

what is database in dbme?


A database is an electronically stored, systematic collection of data.
It can contain any type of data, including words, numbers, images, videos, and
files.
You can use software called a database management system (DBMS) to store,
retrieve, and edit data.

what is dbms?
Database Management Systems (DBMS) are software systems used to store, retrieve,
and run queries on data.
A DBMS serves as an interface between an end-user and a database, allowing users
to create, read, update, and delete data in the database.

Keys
A key is one or more columns that are identified as such in the creation of a table
or index, or in the definition of referential integrity.
Primary key
A table can only have one primary key because it defines the entity.

An index is an ordered set of pointers to rows of a table.


Unlike the rows of a table that are not in a specific order, an index must always
be maintained in order by DB2®.
An index is used for two purposes:
For performance, to retrieve data values more quickly
For uniqueness.
By creating an index on an employee's name, you can retrieve data more quickly for
that employee than by scanning the entire table.
Also, by creating a unique index on an employee number, DB2 will enforce the
uniqueness of each value.
A unique index is the only way DB2 can enforce uniqueness.

Creating an index automatically creates the index space, the data set that contains
the index.
There are two requirements for a primary key:
It must have a value, that is, it cannot be null.
It must be unique, that is, it must have a unique index defined on it.
Unique key
We already know that a primary key must be unique, but it is possible to have more
than one unique key in a table.
In our EMP table example, the employee number is defined as the primary key and is
therefore unique.
If we also had a social security value in our table, hopefully that value would be
unique.
To guarantee this, you could create a unique index on the social security column.
Foreign key
A foreign key is a key that is specified in a referential integrity constraint to
make its
existence dependent on a primary or unique key (parent key) in another table.
The example given is that of an employee's work department number relating to the
primary key defined on the department number in the DEPT table. This constraint is
part of the definition of the table.

You might also like