Database Design and Management Flashcards
What are some common relation databases?
-Oracle
-SQL Server
-Informix
-DB2
-PostgreSQL (open source)
-MySQL (open source)
-MongoDB (open source, noSQL)
-SQLite (open source)
What are the pros and cons of indexes?
Speeds up read speed, slows down write speed
What is a data dictionary?
A list with a description of tables, fields, and columns.
What is a data model?
A data model is an abstract model that organizes elements of data and standardizes how they relate to one another and to the properties of real-world entities.
What are the common field types?
-Short: integer from -32k to 32k
-Long: integer from -2.1B to 2.1 B
-Float: decimals with 6 digits of accuracy
-Double: decimals with 15 digits of accuracy
-Text: Alphanumeric characters
-Date: Date and time
-BLOB: Binary Large Object (stores geometry)
-GUID: Global Unique Identifier
-Raster: Allows raster to be saved in a field
What is a Primary Key (PK) and a Foreign Key (FK)?
-Primary Key: the main unique identifier field in a table
-Foreign Key: the field in another table that has the same value as the primary, so it knows which record relates from one table to another
What are the types of cardinalities?
-One-to-one (table join): one parcel has one owner
-One-to-many (relate): one parcel has many owners
-Many-to-one (table join): many parcels have the same owner
-Many-many (relate): many parcels have many owners
What are the destination and origin tables?
Origin table is joined to the destination table.
What is the difference between an achieve and a backup?
Backups are a short term safety net. Archives are saved on a completely different disc. An archive is a library of historic data. Backups are usually overwritten on a daily or weekly basis, archives are not.
What is the difference between incremental backups and full backups?
Full backups only happen once. Incremental backups only back up recent updates.
What is database compression?
In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation.
What is database transaction?
A transaction is a unit of work that is performed in its entirety on a database. Multiple SQL statements are run individually, but if they are part of a transaction, either all of the statements succeed or none of them succeed.
What is database normalization?
a process where organizes data and tables so it can be added and updated efficiently.