Module 1 - Introduction to Databases Flashcards
(22 cards)
Simply describe the word DATA…
Numeric, textual, visual, or audio information that describes real world systems
DATA can vary in several important ways, describe 3 of these ways…
- Scope - the amount of data produced and collected can vary depending on the business
- Format - data may be produced as numbers, text, video, or audio
- Access - some data sources are private where others are publicly available
A collection of data stored in a structured format is known as a?
Database
A software that reads or writes data in a database is known as a?
Database management system or DBMS
What is a query?
A request to retrieve or change data in a database.
Who is responsible for ensuring security in the database against unauthorized users?
Database administrator
Who determines the format of each data element and the overall database structure?
Database designer
Who develops programs that utilize a database?
Database programmer
What is a group of queries that must be either completed or rejected as a whole?
A transaction - execution of some but not all may result in incorrect or inconsistent data
Most leading databases are relational, what does this mean?
This is a database that stores data in tables columns and rows, similar to a spreadsheet.
SQL or structured query language, includes programming statements that do what?
- Read and write data
- Create and delete tables
- Administer the database system
What are the four common queries known as the CRUD operations…
- CREATE
- READ
- UPDATE
- DELETE
What are other most common SQL commands?
- INSERT
- SELECT
Write a basic insert statement into a table called “account”, with values of (290, ‘Ethan Carr’, 5000) …
INSERT INTO Account
VALUES (290, ‘Ethan Carr’, 5000);
Write a basic select statement that selects the names from the account table where their balance is over 3000…
SELECT Name
FROM Account
WHERE Balance > 3000;
Write a basic update statement that changes Raul’s balance from 3300 to 4500 …
UPDATE Account
SET Balance = 4500
WHERE ID = 831;
Write a basic delete statement that deletes Raul from the database
DELETE FROM Account
WHERE ID = 831;
Simply explain the create table statement with an example…
The create table statement creates a new table by specifying the table and column names. Each column is given a data type that indicates the format of the column values
Example:
CREATE TABLE Employee (
ID INT,
Name VARCHAR (60),
BirthDate DATE,
Salary Decimal(7,2)
);
Database design typically has 3 phases of planning, name 3 in order …
- Conceptual design
- Logical design
- Physical design
Which design phase specifies database requirements without regard to a specific database system?
Conceptual design - requirements are represented as attributes, entities, and relationships
Explain logical design
Logical design implements database requirements into a specific database system, in relational databases this is converting into tables, keys, and columns