0% found this document useful (0 votes)
7 views23 pages

Database

A database is a structured collection of data that enables users to extract information efficiently. Databases are useful for maintaining data consistency, preventing duplication, and ensuring that the same data is accessible to all users. They are commonly used to store information about people, things, and events, organized in tables with records and fields, where each record is uniquely identified by a primary key.

Uploaded by

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

Database

A database is a structured collection of data that enables users to extract information efficiently. Databases are useful for maintaining data consistency, preventing duplication, and ensuring that the same data is accessible to all users. They are commonly used to store information about people, things, and events, organized in tables with records and fields, where each record is uniquely identified by a primary key.

Uploaded by

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

Databases

A database is a structured collection of data that allows people


to extract information in a way that meets their needs.

The data can include text, numbers, pictures; anything that can
be stored in a computer.
Why are
databases
useful?
Why are
databases useful?
Databases prevent problems occurring because:

» if any changes or additions are made it only has to be done once – data is consistent

» the same data is used by everyone

» data is only stored once in relational databases which means no data duplication.
What are databases used for?
What are databases used for?
To store information about people, for instance:

» patients in a hospital
» pupils at a school.

To store information about things, for instance:

» cars to be sold
» books in a library.

To store information about events, for instance:

» hotel bookings
» results of races.
Fields and Records

 Inside a database, data is stored in tables, which consists of many records. Each record consists of several fields.

 The number of records in a table will vary as new records can be added and deleted from a table as required.

 The number of fields in a table is fixed so each record contains the same number of fields.

An easy way to remember this is:

Each record is a row in the table and each field is a column in the table.
What is a data type?
Primary keys

As each record within a table contains data about a single item, person, or
event, it is important to be able to uniquely identify this item.

In order to reliably identify an item from the data stored about it in a record
there needs to be a field that uniquely identifies the item. This field is called the
primary key.
SQL (Structured Query Language)
Example
Example

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy