Exam 1 prep Flashcards

1
Q

What makes a SQL script file?

A

These are text files that contain 1 or more SQL statements that are run in some sequence of operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The client server components of a relational database

A

I do not know

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a daemon process?

A

A background process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Client-server communication is also known as:

A

2-Tier computing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does SQL most commonly stand for?

A

Structured Query Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Put in order the evolutionary steps databases went through?

A

File System, Hierarchical, Networked, Relational, Object Relational

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which is not a valid language group?

A

Data Selection Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following is a DDL command?

A

A DROP statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the acronym ACID represent?

A

Atomic, Consistent, Isolated, and Durable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which command is a DCL?

A

GRANT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which cannot be created with the CREATE statement (multiple answers possible)?

A

row

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following is not true for the truncate command?

A

Is recoverable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an optimistic (non-state aware) network connection is, and how it works

A

An optimistic connection sends a message and receives an acknowledgment, which breaks the connection to the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is DML?

A

Data Manipulation Language.

commands let you query, add, modify, or remove data from structures via SELECT, INSERT, UPDATE, and DELETE statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is DDL?

A

Data Definition Language. commands let you create and modify structures in the database via CREATE, ALTER, DROP, RENAME, TRUNCATE, and COMMENT statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is DCL?

A

Data Control Language. Lets you give and retrieve privileges to act in the database. GRANT, REVOKE.

17
Q

What is TCL?

A

Transaction Control Language. When you transact across more than a single table, you use SAVEPOINT, ROLLBACK, and COMMIT

18
Q

Hierarchal databases

A

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

19
Q

Networked databases

A

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

20
Q

Relational databases

A

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.

21
Q

re-runnable batch or script file

SQL

A

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

22
Q

re-runnable batch or script file

oracle

A

instead of @ use the the ?

?\redms\somescript.sql

23
Q

describe client component of the relational database

A

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

24
Q

‘ls’ command

A

lists whats in the current directory

25
Q

cd

A

to move directories type ‘cd’ then the extension.

‘cd Data/’

26
Q

lib folder

A

where the pre run scripts are

27
Q

how to begin with Oracle sqlplus?

A
type '$ sqlplus' then enter the username and password
! is the bang symbol
SQL> !ls 
SQL> !pwd
to run a file use @ symbol
'@create_oracle_store.sql'
28
Q

mySQL

A
-u student -p means we are using a parameter for the password.
To run a file use:
mysql> \. filename   or
source filename
use specific database:
mysql> use studentdb
29
Q

sudo:

A

use to run with elevated priviledges

30
Q

What does SQL most commonly stand for?

A

Structured Query Language