Module 2 - Unit 4 - Using Databases Flashcards

1
Q

Database

A

An organized collection of information. The information is stored in a structured manner for easier access.

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

Database processes

A

a. Creation
b. Import/Input
c. Storage
d. Queries
e. Reports

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

Flat File systems

A

A system of files in which every file in the system must have a different name. Flat file is used to refer to files that are for data storage

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

Database v.s. Flat File Systems

A

i. Databases validates and enforce information entered
ii. Databases can create complex schemas
iii. Databases can support more storage
iv Databases are more scalable
vi. Database provide access controls

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

Relational database

A

A highly structured database where information is organized in tables that contains columns and rows.

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

Primary Key

A

A unique key in a table and can be used to reference from another table.

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

Foreign Key

A

When a primary key is referenced in another table, it is called a foreign key.

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

Database Schema

A

Describes the structure of the database by the relations of foreign and primary keys.

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

Garbage In, Garbage Out (GIGO)

A

A phrase to describe that if nonsense is inputted into the computer, nonsense will also come out on the other end. This emphasizes the important of input and that it has to conform and are consistent with what the information the field is supposed to store.

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

Database constraints

A

Constraints are place to enforce data types, or a way to validate the values input into the table.

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

Structured Data

A

Structured data allow easy access to stored information and gives the flexibility over what to access. Information stored in a relational database is structured.

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

Unstructured Data

A

Unstructured data provides no rigid formatting of the data. Images and text files, Word documents, and PowerPoint presentations are examples of unstructured data.

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

Semi-Structured Data

A

This is a structure that lies in between structured and unstructured data. It has metadata that helps identify the data.

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

Document database

A

An example of a semi-structured database. Rather than define tables and fields, the database grows by adding documents to it. The structure within the documents would commonly use eXtensible Markup Language (XML) to provide structure.

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

Key/Value pair database

A

Storing the properties of objects without predetermining the filed used to define an object. One use of this is JSON.

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

Database interfaces

A

Database interfaces are the processes used to add/update information to and extract (or view information) from the database.

17
Q

Relational Methods

A

There are two main types, those that define the database structure and those that manipulate information in the database.

18
Q

Data Definition Language (DDL)

A

Refer to SQL commands that add to or modify the structure of the database.
CREATE - creates a table
ALTER TABLE - add, remove and modify table columns
DROP - drops table and database
CREATE INDEX - specify that a column is indexed

19
Q

Data Manipulation Language (DML)

A

Refer to SQL commands that allow you to inset or update records and extract information from records for viewing.
INSERT INTO - adds a new row in a table in the database
UPDATE - changes the value of one or more table columns
DELETE - deletes records
SELECT - define a query to retrieve data from a database

20
Q

Database permissions

A

When an account creates an object, it becomes its owner, having complete control over it. In SQL, it can changed using the ALTER AUTHORIZATION statement.

21
Q

Database access methods

A

Processes by which a user might run SQL commands on the database server or update or extract information using a form or application that encapsulates the SQL commands as graphical controls or tools.

22
Q

Direct/Manual Access

A

Administrators can use an administrative tool like phpMyAdmin to connect and sign in to an RDBMS database. Once they have connected they can run SQL commands to create new databases on the system and interact with stored data.

23
Q

Query/Report Builder

A

A query or report builder provides a GUI for users to select action to perform on the database and converts selections to SQL commands.

24
Q

Programmatic Access

A

A way to access the database using programming languages that comes with libraries that allow a connection to a database and executing queries.

25
Q

User Interface/Utility Access

A

A GUI or from tailored for users to add and search records

26
Q

Standalone Application

A

Application that are hosted on the same computer where the front end, processing logic and database engine is hosted on the same computer

27
Q

Two-Tier Application

A

Applications where the database engine, back end data layer is separated from the presentation and business logic layer, database engine running on a server and the other the client, making it a client-server application

28
Q

Three-Tier Application

A

Where the presentation and application layer are also split. The presentation layer that provides the user interface runs on the client machine, where the application layer runs on a server that the client connects to. Whenever a request is made, the request is verified by the application layer.

29
Q

What are the structural elements of a database table?

A

Each table stores information about records (rows in the table) in fields (columns in the tables).

30
Q

What term is used to describe selecting and viewing information in a database?

A

Query.

31
Q

How does an RDBMS such as Microsoft SQL Server differ from Microsoft Excel when used to store a dataset?

A

Excel is an example of a flat file system. These do not scale well, and usually support a single user only. RDBMS platforms enable many hundreds or thousands of users to connect concurrently, and can support very large datasets. Also, an RDBMS can enforce data types for each column and validate information entered as fields and records.

32
Q

What language is usually used to request data from an RDBMS such as Oracle?

A

Structured Query Language (SQL) is used to query RDBMS-based database platforms.

33
Q

What is it that defines the relationship between tables in an RDBMS?

A

Each table contains a primary key whose value is unique for each record in the table. A foreign table can use the value of a primary key as a relation, storing the value in a foreign key field.

34
Q

Give an example of unstructured data

A

Images and text files and other document formats are unstructured data.

35
Q

Give two examples of semi-structured data stores.

A

Key/value pair databases and markup language document stores.

36
Q

Is an INSERT statement an example of a definition or manipulation language statement?

A

Manipulation language–it depends on the structure of a table (columns, data types, and constraints) being established already.

37
Q

You need a development environment with a library of database functions. What type of interface are you using?

A

Programmatic access.

38
Q

How can a client-server application architecture be described if there is the potential for the structure of the application platform to be developed further?

A

This could be described as a two-tier application. It could be re-developed as a three-tier application by specifying presentation, application, and data layers.