Chapter one Mysql Flashcards

1
Q

What is a database?

A

A very large collection of related data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Database Management System (DBMS):

A

A Software package/system designed to define, manipulate, Retrieve , and manage data in a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why Study Database?

A

Shift from computation to data (information)
- Always true for corporate computing
- More and more true in the scientific world
- Web
- social media generate ever increasing amount of data,
sensor devices generate also huge datasets
Including DBMS encompasses much of CS in a practical discipline
l OS, languages, theory, logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data Models

A

Data modelling is a way for describing data, data relationships, data semantics, data constraints there is four different categories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Starting off with number one Relational model?

A

In a relational model a table is known as a relation
- All the data is stored in various tables the columns and attributes are commonly the top names such as dept_name and salary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a database schema

A

It is a description of a database, which is specified during database design and is not expected to change to frequently
= The information stored in the catalog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Database State

A

The data in the database at a particular moment, also called the current set of instances.
= The data currently in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Three schemas Physical level

A

describes how a record (e.g., instructor) is stored in a
storage media

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Three schemas Logical level

A

describes data stored in database, and the relationships
among the data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Three schemas View level

A

application programs hide details of data types. Views can
also hide information (such as an employee’s salary) for security
purposes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Data Definition Language (DDL)

A

Data Definition Language (DDL)
- Specification notation for defining the database schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Data Manipulation Language (DML)

A

Language for accessing and manipulating the data as organized by the appropriate data model.
Example From the textbook
- Retrieval of information stored in the database
- Insertion of new information into the database
- Deletion of information stored in the database
- Modification of information stored in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Two Types of data-manipulation languages Procedural

A

It requires a user to specify what data are
needed and how to get those data (steps such as 1. go to kitchen 2, get the sugar and milk, 3 mix and cook over fire, 4 put it in the cup and bring it)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Two Types of data-manipulation languages Nonprocedural / Declarative

A

It requires a user to specify what data are needed without specifying how to get those data. (1. Get me a cup of Tea)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Data Dictionary

A

Data dictionary contains metadata
From text book it Stores metadata about the structures of the database, in particular the schema of the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Database Design

A

The process of designing the general structure of the database
such as
- Conceptual Design
- Logical Design
- Physical Design

17
Q

Conceptual Database Design

A
  • Identifies important entities and the high-level relationships among them.
  • No attribute/column is specified.
  • No primary key is specified
18
Q

Logical Database Design

A

 Performed using E-R diagram & relational model.
 Attributes are specified.
 Primary keys are identified.
 Constraints are mentioned