Finals - L5 - Persistent Storage Database Flashcards
What is the crucial component that manages communication
between the memory and the processor in a computer
system?
Example: CPU (cache) and RAM (1 and 0)
Memory Controller
This performs a particular function. What term is this?
Example: WEB, CLI/CONSOLE, GUI
Applications
What is the supplementary memory system that temporarily (not persistent) stores frequently used instructions and data for quicker processing?
Caching
What is any data storage device that retains data after power to that device is shut off?
Persistent Storage
What is this called?
* This is a database stored in a file called a flat file.
* There are no structures for indexing or recognizing relationships
between records.
Example:
.txt/.csv
This is not structured
Flat-file database
What is the kind of database used by the examples below?
* SQL-based
* sqlite
* Oracle
* MSSQL server
* MySQL
Structured Database
EACH DATABASE HAS OWN blank
Example:
Microsoft sql server ———————-ssms- sql server management
studio
Mysql —————————————management studio -
PHPmyadmin
MANAGEMENT SUITE
Workbench
blank is the hostname or the computer that is
currently in use to run a program, in which the computer has the role as a virtual server.
* Anyhost —- IP Address
Localhost—127.0.0.1
What are the type of constraints used to specify rules for the data in a table?
* These constraints are used to limit the type of data
that can go into a table. This ensures the accuracy and
reliability of the data in the table.
SQL constraints
IDENTIFY THE MOST COMMON SQL DATA TYPE:
NUMERIC DATA
blank – Stores numeric values from -2147483648 to
2147483647
blank – Stores numeric values with decimals with lower floating
point that float.
blank – Stores numeric values with decimals with a high floating point
blank – Stores TRUE = 1 or FALSE = 0
- INTEGER / INT
- DOUBLE
- FLOAT
- BOOL
IDENTIFY THE MOST COMMON SQL DATA TYPE:
TIME DATA
blank – Stores Date in the format YYYY-MM-DD.
blank – Stores Time in the format hh:mm:ss
blank – Stores Date and time in the format YYYY-MM-DD
hh:mm:ss.
MISCELLANEOUS DATA
blank – Stores large binary data
TIME DATA
* DATE
* TIME
* DATETIME
MISCELLANEOUS DATA
* BLOB
IDENTIFY THE MOST COMMON SQL DATA TYPE:
TIME DATA
blank – Stores Date in the format YYYY-MM-DD.
blank – Stores Time in the format hh:mm:ss
blank – Stores Date and time in the format YYYY-MM-DD
hh:mm:ss.
MISCELLANEOUS DATA
blank – Stores large binary data
TIME DATA
* DATE
* TIME
* DATETIME
MISCELLANEOUS DATA
* BLOB
What is the command used to create objects in the database?
Create
What is the command used to create a table in the MySQL server?
CREATE TABLE
What are the 2 commands to log into the MySQL server?
- mysql -u root -p
- CREATE DATABASE database1