Data Flashcards
What are 4 of the most common database models?
- Flat-file
- Relational
- Hierarchical
- Object-oriented
What are the two major layers of a database application?
- Application layer
- Database management layer
What is a flat-file database?
Info stored?
Info separated
Limitation
Stores data in a plain text file.
Each line of the text holds one record.
Fields are separated by delimiters like spaces or comas.
Cannot contain multiple tables
What kinds of operations can be performed on a flat-file database? (4)
- Creating
- Deleting
- Updating
- Searching
What is a hierarchical Database?
One of the oldest database models organized in a tree structure like an organizational chart.
What is a relational database?
Contain tables that can be joined together in logical ways.
What does SQL do?
Includes queries to identify what data should be retrieved or how the data should be manipulated.
What does the selection operation do?
Takes rows from one table and creates a new table.
User specifies the table the rows are taken from and tests selection criterion. Selection is tested against each row and when a condition is met, that row is included in result table.
Select does what in SQL?
Identifies records being requested
(*) means what in SQL
Everything form the selected table
From in SQL
Identifies the table name
Where does what in SQL
Identifies the condition the query is requesting
What is Union Operation?
Combines distinct fields from multiple tables that have the same set of attributes and data types.
What is product operation?
Creates a result table that includes all the attributes from the two tables.
Each row of the second table is added to each row of the first table.
What is a join operation/What does it do?
Combines two tables but records are only appended when a matching criterion is met.
Resulting table includes a row with the attributes of both tables only when attributes from the first database table match related attributes from the second database table
What is an object oriented database?
What are the two components of OO
Stores complex data and relationships between data directly without using inner-table relations.
A collection of objects, each with two components
1. the data and
2. instructions (or software programs called methods)
Key-Value databases do what?
Store each item as an attribute name (key) together with its value
Graph stores do what?
Store information about networks of data such as social connections
Wide-column stores do what
Optimized for queries on large data sets and store columns of data together instead of rows.
Document-format databases do what?
Pairs each key with a complex data structure known as a document. Documents can contain many different key-value pairs
NoSQL does what?
Can accommodate a wide variety of data models including key value, document, columnar, and graph formats.
An alternative to traditional relational databases in which data is placed in tables that are carefully designed before the database is built.
What kind of data are NoSQL databases especially useful for?
Large sets of distributed data.
JSON is what?
A way of encoding information (a format) used in document databases
What are two common uses of document databases?
- Content management
- Monitoring web and mobile applications
Couchbase Server is an example of what kind of database?
Document
CouchDB is an example of what kind of database?
Document
MarkLogic is an example of what kind of database?
Document
MongoDB is an example of what kind of database?
Document
What are two common uses of graph databases?
- Recommendation engines
- Geospatial applications
AllegroGraph is an example of what kind of database?
Graph
Amazon Neptune is an example of what kind of database?
Graph
ArangoDB is an example of what kind of database?
Graph
IBM Db2 Graph is an example of what kind of database?
Graph
Neo4j is an example of what kind of database?
Graph
What are two common uses of key-value stores (DB)
- Storing clickstream data
- Application logs
Aerospike is an example of what kind of database?
Key-Value
Amazon DynamoDB is an example of what kind of database?
Key-Value
Azure Table Storage is an example of what kind of database?
Key-Value
Reidis is an example of what kind of database?
Key-Value
Riak is an example of what kind of database?
Key-Value
What are 2 common uses of wide-column stores (DB)?
- Internet Search
- Other large-Scale Web applications
Accumulo is an example of what kind of database?
Wide-Column
Cassandra is an example of what kind of database?
Wide-Column
Google Cloud Bigtable is an example of what kind of database?
Wide-Column
HBase is an example of what kind of database?
Wide-Column
ScyllaDB is an example of what kind of database?
Wide-Column stores
What are Cloud Databases?
Optimized to work in cloud environments.
What are 3 practical benefits of Cloud Databases
- Ability to increase resources to accommodate for demands on the system
- To be highly available even in the case of local or regional outages
- To support SaaS cloud deployments
What are Data Lakes?
A system of data stored in raw format. Usually a single store of all enterprise data as well as information derived from data during reporting, transactions, and other activities.
What is a distributed Database?
Consists of data residing on different machines.