Exam 1 prep Flashcards
(30 cards)
What makes a SQL script file?
These are text files that contain 1 or more SQL statements that are run in some sequence of operations.
The client server components of a relational database
I do not know
What is a daemon process?
A background process
Client-server communication is also known as:
2-Tier computing
What does SQL most commonly stand for?
Structured Query Language
Put in order the evolutionary steps databases went through?
File System, Hierarchical, Networked, Relational, Object Relational
Which is not a valid language group?
Data Selection Language
Which of the following is a DDL command?
A DROP statement
What does the acronym ACID represent?
Atomic, Consistent, Isolated, and Durable
Which command is a DCL?
GRANT
Which cannot be created with the CREATE statement (multiple answers possible)?
row
Which of the following is not true for the truncate command?
Is recoverable
What is an optimistic (non-state aware) network connection is, and how it works
An optimistic connection sends a message and receives an acknowledgment, which breaks the connection to the database.
What is DML?
Data Manipulation Language.
commands let you query, add, modify, or remove data from structures via SELECT, INSERT, UPDATE, and DELETE statements
What is DDL?
Data Definition Language. commands let you create and modify structures in the database via CREATE, ALTER, DROP, RENAME, TRUNCATE, and COMMENT statements
What is DCL?
Data Control Language. Lets you give and retrieve privileges to act in the database. GRANT, REVOKE.
What is TCL?
Transaction Control Language. When you transact across more than a single table, you use SAVEPOINT, ROLLBACK, and COMMIT
Hierarchal databases
This model organizes data in a tree structure with parent child data segments. Implies that a record can have repeating info generally in the child data segments. Only one parent segment with many children
Networked databases
More than one parent per child. Many to many relationships in data. An owner record type can also be a member or owner in another set
Relational databases
Allows the definition of data structures, storage and retrieval operations and integrity constraints. the relations between them are organized in tables. A table is a collection of records and each record in a table contains the same fields.
Each column has a unique name, eat row is unique, column values are of the same kind, sequence is insignificant, values are atomic.
re-runnable batch or script file
SQL
demo file:
@create_data.sql does the job but limits to specific directory.
@C:\Data\create_data.sql
@ is synonymous with the SQL*Plus command START. This means you can also run a script file based on its relative file name: START create_data.sql
re-runnable batch or script file
oracle
instead of @ use the the ?
?\redms\somescript.sql
describe client component of the relational database
Client sends a request. is a command line console. It submits requests to the server-side engine and the engine returns result sets or acknowledgments of success or failure.
provides background processes that run components that support the database.
server is the listener
‘ls’ command
lists whats in the current directory