Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1.  
  2. In relational database, you can compare information because of the
  3. way data is place in columns. The relational database model uses
  4. uniformity to build new tables out of noted information from
  5. existing tables. It uses the relationship of similar data to increase the
  6. speed and versatility of the database.
  7.  
  8. By storing this information in another table, the database can create a
  9. single small table with the locations that can then be used for a variety
  10. of purposes by other tables in the database.
  11.  
  12. structured query language (SQL) is used to create DataBases.
  13.  
  14.  
  15. Breaking stuff down a bit for my undestanding
  16.  
  17. Relational Database
  18.  
  19. A database will contain one or more Tables. Tables contain Rows and columns.
  20. These alo have names Rows being "record" and columns being "fields".
  21. A Flat base is a table that is single in number. A Database with more than one
  22. table is called Relational Database.
  23.  
  24. It is said to be easier to put your information into more than one table.
  25.  
  26. Keep information in one Table will cause you to have to re-enter information.
  27.  
  28.  
  29. First Table
  30.  
  31. ID Name Location Age
  32. 1. Ada USA 16
  33. 2. Oxy Russia 25
  34. 3. Zayn Iran 21
  35.  
  36. Say we wanted to add something that might Change like Phone Number and
  37. Relationship data. We would make another table
  38.  
  39. Second Table
  40.  
  41. ID Phone# Relationship Status
  42. 1. 555-1234 Single
  43. 2. 555-4321 Married
  44. 3. 555-5555 Widowed
  45.  
  46. What this is called is normalizing the Data. Goal, having a place for everything.
  47. Normalization is organizing data in a database. Creating tables and establishing
  48. relationships between those tables
  49.  
  50.  
  51.  
  52. Repeat only the ID when you want to change something or relate something
  53. in the table Example : 1. Ada USA 16 555-1234 Single Would all be accosicated
  54. with ID 1.
  55.  
  56. In this the ID is the Primary Key. Ada can only have one Primary Key which
  57. is 1. Oxy's Primary Key is 2,..and so on.
  58.  
  59. Make sure ou name fields correctly, have fields named the same same can lead
  60. to a lot of issues.
  61.  
  62. When two table have unequal relationshops,..you would have a Parent Table
  63. and a child Table. This wud be a Table that has maybe something unpopular information
  64. That never gets used. Like "Widow" for example (This would be going into adding
  65. more and more Tables, such as Hieght, weight, fave books. Those wouldalso be Child Tables
  66.  
  67. CARDINALITY - the number of elements in a set or other grouping, as a property of that grouping.
  68. This is like, how many records you keep in one table that can be related to
  69. to another table.
  70.  
  71.  
  72. This could be explained by Making a Table about all the movies 1,2, and 3 have ben
  73. watched in the last week. Maybe all 3 of them watch all the same movie that
  74. week, and only one watched a certain movie.
  75.  
  76. DataModle is basically making more and more tables to seperate.
  77. Data models define how data is connected to each other and how
  78. they are processed and stored inside the system.
  79. Data models define how data is connected to each other and how
  80. they are processed and stored inside the system.
  81.  
  82. Basically Say for example 20 people live in one house, Instead
  83. of having 20 rows of Data, you can limit clutter. Its easier to have table
  84. of all people living at the one address.
  85.  
  86. Relationship - entities is called relationship.
  87. Relationships are mapped with entities in various ways. Mapping cardinalities
  88. define the number of association between two entities.
  89.  
  90.  
  91. Entity - An entity in an ER Model is a real-world entity having properties called
  92. attributes. Every attribute is defined by its set of values called domain.
  93. Basically,... in a Galaxy database, a User is considered as an entity.
  94. User has various attributes like name, age, Skills, Fave movie.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement