DOC PREVIEW
UT Dallas CS 6360 - db-review-handout

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Database terms• DBMS: Database Management System• System catalog: stores schema, constraints, users , privileges, etc.• Program-data independence: application p rograms are independent of structure of data files• Program-operation independence: application programs are in dependent of implementationof data structures• Transaction processing: concurrent access of DB by multiple users• Data mod el: concepts used to describe structure of database (data typ es, relationships, con-straints); Schema vs instance• Levels of abstractions: Internal, Conceptual, External; Physical data independence, Logicaldata independence• Two-tier client/server architecture• Three-tier client/server architecture (Client, App lication server, Database server), and itsadvantagesER/EER Model Concepts• Entities, Attributes (simple, composite, multi-valued), Keys• Relationships, Degree, Cardinality, Total/Partial participation, Min/Max constraints• Weak entities and their uses• Classes, subclasses• Specialization, Generalization, Categories• ER and EER notationRelational model• Database is a collection of relations• Relation/Table, Attribute/Field/Column, Domain/Value set• Primary, Secondary and Foreign keys• Constraints: Atomicity of values and the domain constraint, Key constraint, Integrity con-straint, Entity and referential integrity constraintsRelational Algebra• Collection of operations on relations: Select (σ), Proj ect (π), Join (⊲⊳), Product (×), setoperations (∪, ∩, −)• Select: filter rows matching a condition from a relation• Project: choose columns of interest f rom a relation• Join/Product: combine rows of multiple relations based on matching conditions• Natural join and equi join• Aggregate operator: F with operators average, min, max, sum, countRelational Calculus• Define a set that satisfies a given predicate• Variables r ange over tuples (Tuple RC) or domains (Domain RC)• Quantifiers: Existential (∃) and Universal (∀)• Expressions that define infinite sets are unsafe and should be avoided• Use care when writing queries using ∀ or when using “not” w ith ∃Mapping from ER/EER to Relational model• Each entity or weak entity is assigned a table with its attributes• Composite attributes have to be broken into their components to satisfy the atomicity con-straint of the relational model• Each multivalued attribute is assigned a separate table• Each M:N binary relation and higher degree relation is assigned a table, with the primarykeys of the p articipating entities s tored in it as foreign keys (cross reference approach)• For 1:N (and 1:1) binary relations, we can choose between cross reference approach and foreignkey approach (migration)• For EER constructs, we choose one of four ways of m ap ping classes/subclassesSQL• DDL commands: Create Table, Alter Table, Drop Table• Simple queries: SELECT ... FROM ... WHERE ...• Operators: IN, NOT IN, EXISTS, NOT EXIST S, IS NULL• Nested queries usin g IN/EXIST S• Aggregate queries: SELECT ... FROM ... WHERE ... GROUP BY ... HAVING ...• Aggregate operators: SUM, MAX, MIN, AVG, COUNT• Only aggregates and grouping fields are allowed in SELECT line of aggregate queries; onlyaggregate conditions are allowed in


View Full Document

UT Dallas CS 6360 - db-review-handout

Documents in this Course
Ch22(1)

Ch22(1)

44 pages

Ch21

Ch21

38 pages

Ch19

Ch19

46 pages

Ch18

Ch18

25 pages

Ch17

Ch17

21 pages

Ch15

Ch15

42 pages

Ch09

Ch09

42 pages

Ch05

Ch05

34 pages

Ch22

Ch22

45 pages

Ch21

Ch21

38 pages

Ch19

Ch19

48 pages

Ch18

Ch18

24 pages

Ch17

Ch17

22 pages

Ch16

Ch16

17 pages

Ch15

Ch15

42 pages

Ch09

Ch09

42 pages

Ch08

Ch08

39 pages

Ch07

Ch07

34 pages

Ch06

Ch06

43 pages

Ch05

Ch05

34 pages

Ch04

Ch04

39 pages

Ch03(2)

Ch03(2)

36 pages

Ch02

Ch02

33 pages

Ch08

Ch08

28 pages

Ch07

Ch07

31 pages

Ch06

Ch06

43 pages

Ch05

Ch05

39 pages

Ch04(1)

Ch04(1)

39 pages

Ch03(1)

Ch03(1)

38 pages

Ch02

Ch02

38 pages

Ch01

Ch01

36 pages

Ch24

Ch24

36 pages

Ch21

Ch21

54 pages

Ch19

Ch19

48 pages

Ch18

Ch18

24 pages

Ch17

Ch17

22 pages

Ch03(1)

Ch03(1)

38 pages

Ch02

Ch02

38 pages

Ch01

Ch01

36 pages

Ch24

Ch24

36 pages

Ch21

Ch21

54 pages

Ch19

Ch19

48 pages

Ch18

Ch18

24 pages

Ch17

Ch17

22 pages

Ch08

Ch08

28 pages

Ch07

Ch07

31 pages

Ch06

Ch06

43 pages

Ch05

Ch05

39 pages

Ch04(1)

Ch04(1)

39 pages

Ch08

Ch08

39 pages

Ch07

Ch07

40 pages

Ch06

Ch06

47 pages

Ch05

Ch05

41 pages

Ch04

Ch04

43 pages

Ch03

Ch03

41 pages

Ch02

Ch02

38 pages

Ch01

Ch01

36 pages

Ch21

Ch21

54 pages

Ch19

Ch19

51 pages

Ch18

Ch18

24 pages

Ch08

Ch08

39 pages

Ch07

Ch07

40 pages

Ch06

Ch06

47 pages

Ch05

Ch05

41 pages

Ch04

Ch04

43 pages

Ch03

Ch03

41 pages

Ch02

Ch02

38 pages

Ch01

Ch01

36 pages

Ch21

Ch21

54 pages

Ch19

Ch19

51 pages

Ch18

Ch18

24 pages

Ch17

Ch17

25 pages

lab-manual

lab-manual

215 pages

Ch08

Ch08

39 pages

Ch07

Ch07

40 pages

Ch06

Ch06

47 pages

Ch05

Ch05

41 pages

Ch04

Ch04

43 pages

Ch03

Ch03

41 pages

Ch02

Ch02

38 pages

Ch01

Ch01

36 pages

Ch21

Ch21

54 pages

Ch19

Ch19

51 pages

Ch17

Ch17

25 pages

Ch21

Ch21

54 pages

Ch19

Ch19

51 pages

Ch18

Ch18

24 pages

Ch17

Ch17

25 pages

Ch08

Ch08

39 pages

Ch07

Ch07

40 pages

Ch06

Ch06

47 pages

Ch05

Ch05

41 pages

Ch04

Ch04

43 pages

Ch03

Ch03

41 pages

Ch02

Ch02

38 pages

Ch01

Ch01

36 pages

Ch04(1)

Ch04(1)

43 pages

Ch07

Ch07

40 pages

Ch03

Ch03

42 pages

Ch01

Ch01

36 pages

Ch02

Ch02

38 pages

Ch05

Ch05

41 pages

Ch06

Ch06

47 pages

Ch08

Ch08

39 pages

Ch17

Ch17

25 pages

Ch18

Ch18

24 pages

Ch09

Ch09

42 pages

Ch21

Ch21

54 pages

Ch19

Ch19

51 pages

Ch21

Ch21

54 pages

Ch19

Ch19

51 pages

Ch18

Ch18

24 pages

Ch17

Ch17

25 pages

Ch09

Ch09

42 pages

Ch08

Ch08

39 pages

Ch07

Ch07

40 pages

Ch06

Ch06

47 pages

Ch05

Ch05

41 pages

Ch04(1)

Ch04(1)

43 pages

Ch03

Ch03

42 pages

Ch02

Ch02

38 pages

Ch01

Ch01

36 pages

Load more
Download db-review-handout
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view db-review-handout and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view db-review-handout 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?