OA Study Flashcards
What is a database application?
Software that helps business users interact with database systems
What is the role of a database administrator?
Responsible for securing the database system against unauthorized users and enforcing procedures for user access and database system availability
What does authorization in database systems entail?
Many database users should have limited access to specific tables, columns, or rows of a database
What is metadata in the context of databases?
Data about the database, such as column names and the number of rows in each table
How is a relational database structured?
Stores data in tables, columns, and rows, similar to a spreadsheet
What is the SQL query language?
A standard language supported by all relational database systems
What are the four main SQL statements?
- INSERT
- SELECT
- UPDATE
- DELETE
What does the CREATE TABLE statement do?
Creates a new table by specifying the table and column names, with each column assigned a data type
What are the common data types in a database?
- INT
- DECIMAL
- VARCHAR
- DATE
What are the three phases of database design?
- Analysis
- Logical Design
- Physical Design
What is an entity in database terms?
A person, place, activity, or thing
What is a relationship in a database context?
A link between entities
What is an attribute in a database?
A descriptive property of an entity
What does logical design convert entities into?
Tables, keys, and columns
What is the principle of data independence?
Physical design affects query processing speed but never affects the query result
What is an API in the context of databases?
Application programming interface that simplifies the use of SQL with a general-purpose language
What is a tuple in a database?
An ordered collection of elements enclosed in parentheses
What does a column in a table represent?
A named set of values, with each value corresponding to a data type
What are relational operations?
- Select
- Join
- Union
- Aggregate
What does the SELECT statement do?
Retrieves data from a table
What are the five sublanguages of SQL?
- Data Definition Language (DDL)
- Data Query Language (DQL)
- Data Manipulation Language (DML)
- Data Control Language (DCL)
- Data Transaction Language (DTL)
What is a primary key?
A column, or group of columns, used to identify a row
What is a foreign key?
A column, or group of columns, that refer to a primary key
What does the UNIQUE constraint ensure?
Ensures that values in a column, or group of columns, are unique