Module 2 - Unit 4 - Using Databases Flashcards
Database
An organized collection of information. The information is stored in a structured manner for easier access.
Database processes
a. Creation
b. Import/Input
c. Storage
d. Queries
e. Reports
Flat File systems
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
Database v.s. Flat File Systems
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
Relational database
A highly structured database where information is organized in tables that contains columns and rows.
Primary Key
A unique key in a table and can be used to reference from another table.
Foreign Key
When a primary key is referenced in another table, it is called a foreign key.
Database Schema
Describes the structure of the database by the relations of foreign and primary keys.
Garbage In, Garbage Out (GIGO)
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.
Database constraints
Constraints are place to enforce data types, or a way to validate the values input into the table.
Structured Data
Structured data allow easy access to stored information and gives the flexibility over what to access. Information stored in a relational database is structured.
Unstructured Data
Unstructured data provides no rigid formatting of the data. Images and text files, Word documents, and PowerPoint presentations are examples of unstructured data.
Semi-Structured Data
This is a structure that lies in between structured and unstructured data. It has metadata that helps identify the data.
Document database
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.
Key/Value pair database
Storing the properties of objects without predetermining the filed used to define an object. One use of this is JSON.
Database interfaces
Database interfaces are the processes used to add/update information to and extract (or view information) from the database.
Relational Methods
There are two main types, those that define the database structure and those that manipulate information in the database.
Data Definition Language (DDL)
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
Data Manipulation Language (DML)
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
Database permissions
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.
Database access methods
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.
Direct/Manual Access
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.
Query/Report Builder
A query or report builder provides a GUI for users to select action to perform on the database and converts selections to SQL commands.
Programmatic Access
A way to access the database using programming languages that comes with libraries that allow a connection to a database and executing queries.