Docsity

Operators and Database Models - Fall 2015 | DS 3860, Study notes of Introduction to Database Management Systems

Toggle sidebar
bg1
September 9, 2015
Operators and Database Models.
Intersection Entity: Must be union compatible to do an intersection. Opposite of a union. Only getting
the rows that are the same.
Table A
SID Name
300 Charles
500 Edward
600 Frank
700 George
Table B
SID Name
100 Adam
200 Baker
300 Charles
400 David
500 Edward
800 Henry
Solution to Intersection:
SID Name
300 Charles
500 Edward
Relational Model: Everything is made up of tables that are made up of rows and columns.
Spreadsheets are not databases. It can mimic a database.
Tables represent entities in the real world.
Tables are entities.
Instances are a single person/object in an entity. ***This will be on the test.
Rows have the information for one particular instance of an entity.
Rows are entity instances.
Columns are attributes.
pf3

Partial preview of the text

Download Operators and Database Models - Fall 2015 | DS 3860 and more Study notes Introduction to Database Management Systems in PDF only on Docsity!

September 9, 2015 Operators and Database Models. Intersection Entity: Must be union compatible to do an intersection. Opposite of a union. Only getting the rows that are the same. Table A SID Name 300 Charles 500 Edward 600 Frank 700 George Table B SID Name 100 Adam 200 Baker 300 Charles 400 David 500 Edward 800 Henry Solution to Intersection: SID Name 300 Charles 500 Edward Relational Model: Everything is made up of tables that are made up of rows and columns. Spreadsheets are not databases. It can mimic a database. Tables represent entities in the real world. Tables are entities. Instances are a single person/object in an entity. ***This will be on the test. Rows have the information for one particular instance of an entity. Rows are entity instances. Columns are attributes.

When you have an intersection between a row and a column, they give you a particular attribute for a particular instance. That attribute will have a value, even if the value is null. Student SID* Name QPA 100 Adam 3. 200 Baker 5. 300 Charles 3. 400 David 2. 90% database management systems are Relational Database management systems. *** On test. Hierarchical Model: In the manner of a hierarchy. Person needs Service 2, 3, and 4. Service 2 is in program A and provided by 1; Service 3 is in program B and provided by 1; and Service 8 is in program E and provided by 3. Complex Network Model: Customer M:N Sales Person 100 A 200 B 300 C M is more than one. N is more than one. Services Programs Providers:

A

B

C

D

E

F