• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/45

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

45 Cards in this Set

  • Front
  • Back

Relational DataBase

Contains a collection of separate tables. The concept is to have each table with a single theme

Intsert

Able to insert data or a row of data with out disturbing the table

Update

Changed data where there is no inconsistancy

Delete

Ables to delete data with no consequences in the other tables



Insert, Update, delete EX

Adding professor to an advisor table who is not an adivisor


Updating the professors email bc it will be stored just once in the advisor table


Deleting s tudents information will not effect the advisor because it will be in another table



Problems with Lists

Inserting, updating, and deleting screw the whole list up.



Functions of DBMS

Create database


creat tables


create supporting structures


read data


madify data


maintain structures


Enforce rules


controlly concurrency


provide security


perform backup and recovery

data types

auto num


numeric


currency


text


date

Why avoid null values?



The user does not know what that means



3 main rules for normalization

Get rid of repeating groups


Get rid of partial dependencies


Get rid of transitive dependencies

composite key 8

more than 1 field that make up a primary key

Surrogate key

A field related to the field that would be a good name for the primary key

cascade delete

If you delete the primary key in the primary table, it deletes all other foreign keys that corresponds with the primary key

Cascade update

If you update the primary key in the primary table, it updates all other foreign keys that corresponds with the primary key

Why normalize



to reduce and even eliminate data redundancy

Built in functions

Max


Min


Sum


Count


Add


Avg

INNER JOIN

Table1 INNER JOIN (TABLE2 INNER JOIN bridgetable ON bridgeTable.[field] = Table2.[field]) ON Table1.[field] = Table2.[field];

sql how to write LIKE

'*WORDS*'

DISTINCT

Eliminates key words

redundancy

Unnecessary repeated information

concurrency

2 or more people trying to access the same data at the same time

Referential integrity constraints

A relationship constraint on foreign keys values. It specifies the values of a foreign key must be a proper subset of the values of the primary key

database

Self describing collection of related tables

DBMS 8

set of programs used to define, administer, and process a database and its applications

Metadata

Data concerning the structure of databases

Relational model

Shows which data is stored in relationships between rows and the values



foreign key 8

An attribute that is a key of one or more relations

NULL value

Values that can be unknown, not appropriate, or can be blank

Primary key

Key of relation , it is selected

when in the where section and want to have a limit to a certain word, what do you put around the word

single quotes

EXAMPLE OF Average if you need the average donation value for adopted animals

SELECT AVG(DONATION) AS [Average Donation Value]


FROM Animal;



AS represents

Name the title whatever is between brackets

EXAMPLE of total value of an order number 22

SELECT sum(COST) AS [Value]


FROM OrderItem


WHERE PONumber = 22;

EXAMPLE of number of days between when it was ordered and when it was received

SELECT PONumber, ReveiceDate, OrderDate, (ReceiveDate-OrderDate) AS [Number of days]


From MerchandiseOrder;

How to write a date

#1/1/0001#

4 concepts and features of a primary key 8

cannot have a meaning


Cannot change


Cannot be null


uniquely identifies records

What to do when you first start a database?

Get the data from the user

data model

how data is connected to each other and how they are processed and stored inside the system.

ER MODEL

entity-relationship (ER) diagram, is a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems.

entity

Restricted to things that can be represented to a single table

Strong entity

does not depend on another entity

Weak entity

dpends on another entity

id dependent entity

Cant exsist without another entity

max/min cardinality

Maximum cardinality is the maximum number of instances of an entity that can participate in an instance of a relationship. Minimum is the least number of instances of an entity that can participate in an instance of a relationship.

subtype

EX ENGINEER IS A SUB TYPE OF EMPLOYEE