Relational Database 157a (1) Flashcards
What is Data?
- data refers to raw facts, observations, or information that can be collected, stored, and analyzed.
- it can take various forms, including numbers, text,images, audio, and more
- It is the foundation of knwoledge
What are the types of data?
Structured,Unstuctured, and Semi-Structured
What is Structured Data?
- can be described according to a formal logical data model
- ability to express integrity rules and enforce correctness of data also facilitates searching, processing and analyzing the data
- ex. number, name, address, email of a student
What is Unstructured Data?
- No finer grained components in a file or series of characters that can be interpreted in a meanigful way by a DBMS or application
- Ex. invoices, audio, records, emails, audio, weather data, sensor data
- total volume of unstrucutred data surpasses that of structured data
What is semi structured data?
Semi-structured data
○ data which does have a certain structure, but the structure may be very irregular or highly
volatile
○ E.g., individual users’ webpages on a social media platform, or resume documents in a human
resources database
Where do we store data?
●SSDs
● HDDs
● PC registers
● Files
These are all considered databases
What is a database?
● A collection of files storing related data.
● A Database is a large, organized collection of related data
● A Database Management System(DBMS) is the software designed to store, manage,
and facilitate access to large collections of related data
● The combination of a DBMS and a database is often called a database system
examples:
Accounts database;
Payroll database
Amazon’s products database
Airline reservation database
What is DBMS?
- A big program that allows us to manage efficiently a large database and allows it
to persist over long periods of time.
Examples of DBMSs
– Oracle, IBM DB2, Microsoft SQL Server, Vertica, Teradata
– Open source: MySQL (Sun/Oracle), PostgreSQL, AsterixDB
– Open source library: SQLite
What are some DBMS features?
Supports massive amounts of data
–Giga/tera/peta bytes
–Far too big for main memory
Persistent storage
–Programs update, query, manipulate data.
–Data continues to live long after program finishes.
Efficient and convenient access
–Efficient: do not search entire database to answer a query.
–Convenient: allow users to query the data as easily as possible.
What is a database model?
●A database model is comprised of different data models, each describing the
data from different perspectives
● A data model provides a clear and unambiguous description of the data items,
their relationships and various data constraints from a particular perspective
● Database model or database schema provides the description of the database
data at different levels of detail and specifies the various data items, their
characteristics and relationships, constraints, storage details, etc.
○ specified during database design and not expected to change too frequently
○ stored in the catalog
ex.
Student (number, name, address, email)
Course (number, name)
Building (number, address)
What is Database State?
Database state represents the data in the database at a particular moment
○ also called the current set of instance\
○ typically changes on an ongoing basis
What are the three famous layers of architecture?
- External
- Conceptual/Logical
- Internal
Changes in one layer should have no to minimal impact on the others
○ Physical data independence
○ Logical data independence
What is the External Layer?
● External layer (View level)
○ External data model which includes views
○ Used to control data access and enforce security
Changes in one layer should have no to minimal impact on the others
○ Physical data independence
○ Logical data independence
What is the conceptual logical layer?
Conceptual\logical layer (Logical level)Contains the conceptual and logical
data models
○ E.g.,tables
Changes in one layer should have no to minimal impact on the others
○ Physical data independence
○ Logical data independence
What is the internal layer?
Internal layer (Physical level)
○ Includes the internal data model
○ E.g., Index
Changes in one layer should have no to minimal impact on the others
○ Physical data independence
○ Logical data independence
Who are some of the different database users?
- Information architect designs the conceptual data model–closely interacts
with the business user
● Database designer translates the conceptual data model into a logical and
internal data model
● Database administrator(DBA) is responsible for the implementation and
monitoring of the database
● Application developer develops database applications in a programming
language such as Java or Python
● Business user will run these applications to perform specific database
operations