Docsity

Structured Query Languages - Notes - Fall 2015 | DS 3860, Study notes of Introduction to Database Management Systems

Toggle sidebar
bg1
Database Management Notes: August 26, 2015
SQL: Structured Query Language
Database: Self describing collection of integrated data and relationships.
Source Data: Raw facts and figures.
MetaData: Data about data. Self-describing part of database def. How source data is stored.
Expresses relationships between data.
Application MetaData: How we want the database management system to act.
Overhead Data: Does not provide information. It allows you to get to information efficiently.
Used to create relationships that we store within the database.
oEx:
Student Faculty
SID (primary key) FID
Name Name
Major Department
Advisor (foreign key)
QPA
oForeign key: An attribute in one table that contains the primary key value of a row in
another table.
oEx:
Index
SID PL Student
100 2 200
200 1 100
300 5 400
400 3 500
500 4 300
In 3rd generation programs you have to tell the computer how to do what you want it to do.
In 4th generation programs you tell the computer what you want done.
We give parameters (application metadata) to tell the computer what to do.
File System Database Relational Database
Field: field of information Column: Fields Attribute: Single piece of
information inside a relational
database.
Record: fields of information
grouped together.
Row: Records Tuple: Relationship inside a
relational database.
File: Records grouped together. Table: File Relation: A set of tuples that are
members of a data domain.
****Know how to reproduce this table for the exam.
pf2

Partial preview of the text

Download Structured Query Languages - Notes - Fall 2015 | DS 3860 and more Study notes Introduction to Database Management Systems in PDF only on Docsity!

Database Management Notes: August 26, 2015 SQL: Structured Query Language Database: Self describing collection of integrated data and relationships.  Source Data: Raw facts and figures.  MetaData: Data about data. Self-describing part of database def. How source data is stored. Expresses relationships between data.  Application MetaData: How we want the database management system to act.  Overhead Data: Does not provide information. It allows you to get to information efficiently. Used to create relationships that we store within the database. o Ex: Student Faculty SID (primary key) FID Name Name Major Department Advisor (foreign key) QPA o Foreign key: An attribute in one table that contains the primary key value of a row in another table. o Ex: Index SID PL Student 100 2 200 200 1 100 300 5 400 400 3 500 500 4 300 In 3rd^ generation programs you have to tell the computer how to do what you want it to do. In 4th^ generation programs you tell the computer what you want done. We give parameters (application metadata) to tell the computer what to do. File System Database Relational Database Field: field of information Column: Fields Attribute: Single piece of information inside a relational database. Record: fields of information grouped together. Row: Records Tuple: Relationship inside a relational database. File: Records grouped together. Table: File Relation: A set of tuples that are members of a data domain. ****Know how to reproduce this table for the exam.

IPO Model: Input Process Output I (2) P (3) O(1) IPO Black box/White Box When you change what you want to output in this model, you have to change everything. IPO-Database System: I (2) P (4) O (3) Files (4) DB (1)