English feliratok

← Think About the Attendee-Festival Relationship - Intro to Point & Click App Development

Beágyazókód kérése
1 Language

Showing Revision 2 created 05/25/2016 by Udacity Robot.

  1. Alright, so we've got our two attendees. Johnny Concert and Misty Music.
  2. >> Yup.
  3. >> And we've got our two festivals,
  4. ROFLpalooza and Cloudstock. I really like those names.
  5. >>
  6. [LAUGH].
  7. Me too.
  8. >>
  9. >> But can you see the problem here?
  10. >> I mean, they don't have anything to do, like this festival doesn't
  11. know anything about the attendees, so there's no way to like match them.
  12. >> Right. We don't know which festival either of those people are going to.
  13. >> Yeah.
  14. >> So we'll need to relate those two tables.
  15. >> Okay. And so how do we, how do we do that? How do we think about that?
  16. >> So let's take a look at it on the tablet to make it a little more clear.
  17. >> Okay.
  18. >> So, start off by
  19. looking at our festival object. We have the festival here. The, all of
  20. the different field names. And then we
  21. have individual records, like Cloudstock and ROFLpalooza.
  22. >> Right, right. And the fields were our columns. And, I get that.
  23. >> Yep.
  24. >> Okay.
  25. >> So, we could also think about what our attendee object could look like.
  26. >> Okay.
  27. >> Here we have same sort of thing. All of our
  28. fields as the columns and then our records as the rows.
  29. >> Okay.
  30. >> But if we were trying to relate these two tables, we would need to create
  31. a relationship field on one of them.
  32. >> Okay. So like, can I think of that as a new column?
  33. >> Think of it as a new column in
  34. the table, exactly. So, what would make more sense, to
  35. add a column onto Attendees relating it to Festival, or
  36. to add a column onto Festival relating it to Attendees?