Oracle Database Flashcards
What does the database do?
A database collects data, store, and organizes data, and retrieves related data.
What is DBMS and what does it do?
Database management System controls the storage, organization, and retrieval of data.
SQL is the
code and language used to retrieve data from the database.
What is RDBMS and what does it do?
Relational database management system is an organized model of subjects and characteristics that have relationships among the subjects.
3 Characteristics of a Relational Database:
■ Structures are objects that store or access data from the database. Tables, views, and indexes are examples of structures in Oracle.
■ Operations are the actions that are used to define the structures or to manipulate data between the structures. SELECT statements and CREATE statements are examples of operations in Oracle.
■ Integrity rules govern what kinds of actions are allowed on data and the database structure. These rules protect the data and the structure of the database. The primary keys and foreign keys are examples of integrity rules in Oracle.
ER model has [Blank], [Blank], and [Blank].
An ER model has entity, relationship, and attributes.
ER model: Entities and Attributes
An entity in a logical model is much like a noun in grammar—a person, place, or thing. The characteristics of an entity are known as its attributes. Attributes
are detailed information about an entity that serves to qualify, identify, classify, or quantify it.
ER model: Relationships and Unique Identifiers
In the ER model, a solid line represents a mandatory relationship, and a crowfoot represents the “many.” But in some departments, there may not be any employees at all. Optional occurrence is represented by a dotted line.
How do you create a physical model?
The physical model is created by taking the logical model and creating a database and database objects to represent the entities and relationships.
In the physical model, each entity becomes a [Blank] and attributes of the entity become columns of the table.
table
What is DML and what is it used for?
Database Manipulation Language is used to access, insert, modify, or delete data in the existing structures of the database.
DML Statements: SELECT, INSERT, UPDATE, DELETE, MERGE, EXPLAIN PLAN, LOCK TABLE,
What is DDL and what is it used for?
Data Definition Language is used to define, alter, or drop database objects and their privileges.
DDL Statements: CREATE, ALTER, DROP, RENAME, TRUNCATE, GRANT, REVOKE, AUDIT, NOAUDIT, COMMENT
How do you write the concatenation operator?
||’Oracle12c’ || ‘Database’ results in ‘Oracle12cDatabase’.
What is a query?
A query is a request for information from the database tables.
Does query modify data? If not, what does it do?
Queries do not modify data; they read data from database tables and views.