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
Q

Give four examples of DDL commands.

A
  1. CREATE
  2. ALTER TABLE
  3. DROP
  4. CREATE INDEX
26
Q

What does the DDL command CREATE do? There are two things.

A
  1. It can create a new database on the RDBMS server.
  2. It can add a new table within an existing database.
27
Q

What DDL command will create a database?

A

CREATE DATABASE

28
Q

What DDL command will add a table to an existing database?

A

CREATE TABLE

29
Q

What does the DDL command ALTER TABLE do? Name three things.

A
  1. It allows you to add, remove, and modify table columns.
  2. Change a primary or foreign key.
  3. Configure existing constraints.
30
Q

What does the DDL command ALTER DATABASE do?

A

It can modify the properties of a whole database, such as its character sets.

31
Q

What are the two DDL DROP commands?

A
  1. DROP TABLE
  2. DROP DATABASE
32
Q

What does DDL command CREATE INDEX do?

A

It creates an index on a specific column(s) within a table, which essentially acts as a lookup table to quickly locate data.

33
Q

What DDL command drops an index?

A

DROP INDEX

34
Q

What does DML stand for?

A

Data Manipulation Language

35
Q

What does Data Manipulation Language DML commands do?

A

It allows you to insert or update records and extracts information from records for viewing.

36
Q

Which DML command adds a new row in a table of database?

A

INSERT INTO (table name)

36
Q

Which DML command is used to change the value to one or more table columns?

A

UPDATE (Table name)

36
Q

Which DML command deletes records from a table?

A

DELETE FROM (table name)

36
Q

In DML an UPDATE command can be used with or without a WHERE statement. What happens in each case?

A
  • 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
Q

In DML a DELETE FROM command can be used with or without a WHERE statement. What happens in each case.

A
  • 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
Q

Which DML statement enables you to define a query to retrieve data from a database?

39
Q

Using DML how would I select all data in the specified “Customers” table?

A

SELECT * FROM Customers ;

40
Q

Using DML how would I retrieve the values in the Name and Town fields for all records in the Customers table?

A

SELECT Name, Town FROM Customers ;

41
Q

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’?

A

SELECT * FROM Customers
WHERE Town = ‘Slough’
ORDER BY Name ;

42
Q

What are SQL Permissions

A

A control system where specific user accounts can be granted rights over different objects in the database and the database itself.

43
Q

What are database objects?

A

Tables, columns, views.

44
Q

What happens when an account creates an SQL Permission?

A

That account becomes the owner of that object and has complete control over it? The owner cannot be denied permission.

45
Q

How can a SQL Permissions owner be changed? Meaning what command?

A

ALTER AUTHORIZATION

46
Q

How can I grant a specific rights to another user using SQL commands?

A

GRANT (permission) TO (user)

47
Q

Using the SELECT statement grant specific rights to “james”.

A

GRANT SELECT ON Customers TO james

Note: don’t worry to much about this one.

48
Q

How do I deny/take away rights from someone using SQL.

A

DENY (permission) TO (user)

49
Q

Which is stronger DENY or GRANT?

A

DENY overrides GRANT, but cannot affect the owner.

50
Q

Query/Report Builder

A

A GUI for those who don’t know SQL syntax.

51
Q

What is Microsoft SQL Server?

52
Q

What is used to maintain and query data?

53
Q

What type of database is a SQL database?

A

A Relational Database.

54
Q

What is a widely used key/value format?

55
Q

What are used to summarize and correlate data points?

A

Searches/Queries.

56
Q

What type of database is a Key/Value Pair Database?

A

Non-relational Database.

57
Q

What do you call data that has no rigid formatting?

A

Unstructured.

58
Q

What data lacks formal structure, but has associated metadata?

A

Semi-structured.

59
Q

What type of data is stored in a relational database?

A

Structured.