Unit 1 Half
Unit 1 Half
Definition
separating the physical storage of data from how users interact with it,
LEVELS OF ABSTRACTION
PHYSICAL LEVEL LOGICAL LEVEL VIEW LEVEL
Definition: Definition: Definition:
This is the lowest level of This is the intermediate This is the highest level of
abstraction. It describes only
data abstraction. It level of abstraction. It
part of the database relevant
describes how the data is describes what data is stored to a specific group of users
physically stored in the in the database and the or applications. The view
level simplifies user
database. This includes relationships between the
interaction by hiding the
details like the data files, data without exposing the complexity of the logical
blocks of storage, and physical storage details. schema.
indexing mechanisms.
What is a Schema?
• Definition:
A schema is the overall structure or blueprint of a database.
What is an Instance?
• Definition:
An instance is the actual data stored in a database at a specific
point in time.
Summary
• DDL is used to define and enforce the structure of the database.
• It provides constraints like domain constraints (valid data
types) and referential integrity (correct relationships between
tables).
• SQL is a popular database language that integrates DDL and
DML.
Query Language
• A query is a statement requesting information from a database.
• The part of DML used to retrieve data is called a query
language.
o In practice, query language and data manipulation
language are often used interchangeably.
• SQL (Structured Query Language) is the most widely used
query language and is nonprocedural. This means that you
describe the result you want, not the steps needed to get it.