Quiz 1 Flashcards
(74 cards)
What is a Database?
An organized collection of structured data, typically stored electronically and accessed via a DBMS.
What is the primary purpose of a Database?
To store, manage, retrieve, and manipulate data efficiently and securely.
List the ideal qualities of a Database.
- Low redundancy
- High consistency
- Integrity enforcement
- Data independence
- Concurrency
- Durability
Who are the common users of a Database?
- End users: Access data via applications
- Developers: Build and maintain data-driven applications
- DBAs: Oversee performance, backups, security
What does DBA stand for?
Database Administrator
What is a DBMS?
Database Management System: Software used to define, manipulate, retrieve, and manage data.
Define Data Model.
Abstract framework defining how data is structured (e.g., relational).
What is a Schema in a Database?
The structure of a database — tables, fields, relationships.
What is an Instance in Database terminology?
A snapshot of the data in the database at a given time.
What does Structure refer to in a Database?
The logical arrangement of data (schemas, tables).
What is Integrity in the context of Databases?
Ensures data correctness and adherence to constraints.
What does Manipulation refer to in Databases?
Operations like insert, delete, update, select.
What is DDL?
Data Definition Language: SQL commands like CREATE, DROP, ALTER.
What is DML?
Data Manipulation Language: SQL commands like SELECT, INSERT, DELETE.
What are the two types of Data Independence?
- Logical: Change schema without altering apps
- Physical: Change storage without changing schema
Define Transaction in the context of Databases.
A sequence of operations that form a single logical unit of work.
What does ACID stand for?
- Atomicity: All or nothing
- Consistency: DB rules preserved
- Isolation: Transactions don’t interfere
- Durability: Changes persist after commit
What are the three levels of Database Architecture?
- External: User views
- Conceptual: Logical view (what data is stored)
- Internal: Physical storage
At which level do users primarily interact with the Database?
External level.
At which level do developers primarily interact with the Database?
Conceptual level.
What is the Relational Model in Databases?
Data as tables with rows and columns.
Define NoSQL.
Non-relational databases for flexible or large-scale data (e.g., document or key-value stores).
What is a Relation in SQL?
Table.
What is an Attribute in SQL?
Column.