Professional Documents
Culture Documents
Database
Database
Database
Database:
A database is a well-organized compilation of data
that enables individuals to retrieve information
according to their specific requirement.
Data in a database can be any type of data
including text, images, videos, sound.
Why do we need a database?
FROM Movie
● Verification checks check whether the data that has been entered is the correct
data and is accurate
● This is often completed by getting data entered by one person is then checked by
another person
● When a table is created, validation rules can be assigned to the different fields
● A validation rule controls what data can be entered into that field.
● There are different types of validation checks used to limit what data can be
entered into each field
Data Type
Each field will require a data type to be selected. A data
type classifies how the data is stored, displayed and the
operations that can be performed on the stored value.
Primary Key
SQL(Structured Query Language
● Structured Query Language (SQL) is the standard language for writing scripts
to retrieve valuable information from databases.
● Records in a database can be searched and data can be manipulated using
Structured Query Language (SQL)
● SQL statements can be written to query the data in the database and extract
useful information
● SQL statements follow this structure:
○ SELECT the fields you want to display
○ FROM the table/tables containing the data you wish to
search
○ WHERE the search criteria
FROM Movie
WHERE Rating>8.4;
Example
FROM Movie
WHERE Rating>8.4;
SELECT Name, Genre, Certificate, Rating
FROM Movie
SELECT SUM (Field) – this specifies the field (column) for the
calculation.
SELECT SUM(QuantityInStock)
FROM ProductTable;
Example
SELECT COUNT(*)
FROM ProductTable
WHERE Price>2;
Result:2
Result :5
SELECT COUNT(Name)
FROM Students;
Result :5