Module Nine Flashcards

1
Q

What is a database?

A

A database is an organized collection of information consisting of tables of information organized into columns and rows. Each row represents a separate record in the database, while each column represents a single field within a record.

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

Give two examples of flat files.

A

Spreadsheet and CSC (Comma Separated Value).

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

What does CSV stand for?

A

Comma Separated Values.

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

What is a CSV file?

A

A CSV file uses commas to identify the end of a column and a line feed for each row.

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

What does RDBMS stand for?

A

Relational Database Management System.

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

What does SQL stand for?

A

Structured Query Language.

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

Give four examples of RDBMS.

A
  1. Microsoft SQL Server
  2. Oracle Database
  3. MySQL
  4. Microsoft Office Access.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a “schema”?

A

The structure of the database in terms of the fields defined in each table and the relationship between primary and foreign keys.

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

What is a primary key?

A

A primary key is used to define the relationship between one table and another table in a database. For instance one customer may have more than one table, a primary key field/column would be the way they were linked.

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

What is a “foreign key”?

A

When a primary key in one table is referenced in another table.

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

What does GIGO stand for?

A

Garbage In, Garbage Out

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

What is a constraint?

A

Rules or conditions applied to database data, ensuring data integrity, consistency, and adherence to business rules.

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

What does parse mean?

A

Interpret

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

Three things about Unstructured Data.

A
  1. Much easier to create.
  2. Supports a much larger variety of data types.
  3. Examples would be (Image and text files, Word documents, and PowerPoints).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Two things about Semi-Structured data.

A
  1. A middle ground between structured and unstructured data.
  2. Data is identifiable via metadata.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Give two examples of semi-structured.

A
  1. Email data.
  2. XML.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is metadata?

A

Associated information that helps identify data.

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

Two things about NoSQL.

A
  1. Database engines dealing with a mixture of structured, unstructured, and semi-structured data.
  2. Also called Not Only SQL.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Two things about a Document Database.

A
  1. Is an example of a semi-structured database.
  2. They can use the same or different structure types.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is a key/value database?

A

A means of storing the properties of objectives without predetermining the fields used to define an object.

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

What are ‘database interfaces’ used for?

A

They are used to add or update information and to extract (or view) information from the database.

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

What are the two types of relational methods?

A

Those that define the database structure and those that manipulate the information in the database.

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

What does DDL stand for?

A

Data Definition Language.

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

What is Data Definition Language?

A

DDL refers to SQL commands that add to or modify the structure of the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Give four examples of DDL commands.
1. CREATE 2. ALTER TABLE 3. DROP 4. CREATE INDEX
26
What does the DDL command CREATE do? There are two things.
1. It can create a new database on the RDBMS server. 2. It can add a new table within an existing database.
27
What DDL command will create a database?
CREATE DATABASE
28
What DDL command will add a table to an existing database?
CREATE TABLE
29
What does the DDL command ALTER TABLE do? Name three things.
1. It allows you to add, remove, and modify table columns. 2. Change a primary or foreign key. 3. Configure existing constraints.
30
What does the DDL command ALTER DATABASE do?
It can modify the properties of a whole database, such as its character sets.
31
What are the two DDL DROP commands?
1. DROP TABLE 2. DROP DATABASE
32
What does DDL command CREATE INDEX do?
It creates an index on a specific column(s) within a table, which essentially acts as a lookup table to quickly locate data.
33
What DDL command drops an index?
DROP INDEX
34
What does DML stand for?
Data Manipulation Language
35
What does Data Manipulation Language DML commands do?
It allows you to insert or update records and extracts information from records for viewing.
36
Which DML command adds a new row in a table of database?
INSERT INTO (table name)
36
Which DML command is used to change the value to one or more table columns?
UPDATE (Table name)
36
Which DML command deletes records from a table?
DELETE FROM (table name)
36
In DML an UPDATE command can be used with or without a WHERE statement. What happens in each case?
- If used with a WHERE statement it will filter the records to be updated. - If no WHERE statement is used the command applies to all records in the table.
37
In DML a DELETE FROM command can be used with or without a WHERE statement. What happens in each case.
- If a WHERE statement is used it will filter through the records in the table. - If a WHERE statement isn't used, all records in the table will be deleted.
38
Which DML statement enables you to define a query to retrieve data from a database?
SELECT
39
Using DML how would I select all data in the specified "Customers" table?
SELECT * FROM Customers ;
40
Using DML how would I retrieve the values in the Name and Town fields for all records in the Customers table?
SELECT Name, Town FROM Customers ;
41
Using DML how would I, in alphabetical order, retrieve all records from the Customer table where the value in the Town field is equal to "Slough'?
SELECT * FROM Customers WHERE Town = 'Slough' ORDER BY Name ;
42
What are SQL Permissions
A control system where specific user accounts can be granted rights over different objects in the database and the database itself.
43
What are database objects?
Tables, columns, views.
44
What happens when an account creates an SQL Permission?
That account becomes the owner of that object and has complete control over it? The owner cannot be denied permission.
45
How can a SQL Permissions owner be changed? Meaning what command?
ALTER AUTHORIZATION
46
How can I grant a specific rights to another user using SQL commands?
GRANT (permission) TO (user)
47
Using the SELECT statement grant specific rights to "james".
GRANT SELECT ON Customers TO james Note: don't worry to much about this one.
48
How do I deny/take away rights from someone using SQL.
DENY (permission) TO (user)
49
Which is stronger DENY or GRANT?
DENY overrides GRANT, but cannot affect the owner.
50
Query/Report Builder
A GUI for those who don't know SQL syntax.
51
What is Microsoft SQL Server?
A RDBMS
52
What is used to maintain and query data?
SQL
53
What type of database is a SQL database?
A Relational Database.
54
What is a widely used key/value format?
JSON
55
What are used to summarize and correlate data points?
Searches/Queries.
56
What type of database is a Key/Value Pair Database?
Non-relational Database.
57
What do you call data that has no rigid formatting?
Unstructured.
58
What data lacks formal structure, but has associated metadata?
Semi-structured.
59
What type of data is stored in a relational database?
Structured.