CPSC-310 Database Systems

Slides:



Advertisements
Similar presentations
Constraints in Entity-Relationship Models Zaki Malik September 18, 2008.
Advertisements

Database Management Systems Chapter 3 The Relational Data Model (I) Instructor: Li Ma Department of Computer Science Texas Southern University, Houston.
CSCI 305 – Fall 2013 The Entity-Relationship Model Based on Slides by Prof. Brian King.
1 Entity-Relationship Model Diagrams Class hierarchies Weak entity sets.
1 Convert E/R to Relation May 18, Entity Set -> Relation Relation: Beers(name, manf) Beers name manf.
Databases : Relational Model 2007, Fall Pusan National University Ki-Joune Li These slides are made from the materials that Prof. Jeffrey D. Ullman distributes.
Chapter 4 Notes. Entity-Relationship Model E/R Diagrams Weak Entity Sets Converting E/R Diagrams to Relations.
Design Principles: Faithfulness
Weak Entity Sets. Occasionally, entities of an entity set need “help” to identify them uniquely. Example. Crews might have a number and some description,
Weak Entity Sets. Occasionally, entities of an entity set need “help” to identify them uniquely. Entity set E is weak if in order to identify entities.
Design Principles: Faithfulness
1 Entity-Relationship Model Slides by Jeffrey Ullman Modified by J. Welch to replace beers with candies.
DATABASE APPLICATION DEVELOPMENT SAK 3408 Database Design II (week 3)
From ER Diagrams to the Relational Model Rose-Hulman Institute of Technology Curt Clifton.
1 Announcement Recitation time  Before midterm: 6-7pm, by Earl Wagner  After midterm: 5-6pm, by Yi Qiao Newsgroup safe to subscribe  Will not cause.
A four-way Relationship
1 The Relational Data Model Tables Schemas Conversion from E/R to Relations.
Fall 2001Arthur Keller – CS 1803–1 Schedule Today Oct. 2 (T) Relational Model. u Read Sections Assignment 1 due. Personal Letter of Introduction.
1 Entity-Relationship Model Diagrams Class hierarchies Weak entity sets.
CS411 Database Systems Kazuhiro Minami
Databases : Entity-Relationship Model 2007, Fall Pusan National University Ki-Joune Li These slides are made from the materials that Prof. Jeffrey D. Ullman.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Database Management Systems Chapter 2 The Entity-Relationship Data Model Instructor: Li Ma Department of Computer Science Texas Southern University, Houston.
ER Data Models Ctd. CSET 3300.
1 Entity-Relationship Model Chapter 2 Copyright : Jeff Ullman + Hank Korth.
Tallahassee, Florida, 2015 COP4710 Database Systems E-R Model Fall 2015.
Entity-Relationship Model
SAnta Clara UniversityHolliday – COEN 1782–1 Today’s Topic Today: u Constraints, Weak Entity Sets, Entity- Relationship Design. u Read Sections
Dale Roberts 11/26/ Department of Computer and Information Science, School of Science, IUPUI Fall 2003 Dale Roberts, Lecturer Computer Science, IUPUI.
Databases 1 Fifth lecture. Entity-Relationship Model Diagrams Class hierarchies Weak entity sets From E/R diagrams to Relations 2.
Instructor: Jinze Liu Fall Phases of Database Design u Conceptual design begins with the collection of requirements and results needed from the.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Entity-Relationship Model E/R Diagrams Converting E/R Diagrams to Relations.
CS 405G: Introduction to Database Systems Relations.
1 The Relational Data Model Tables Schemas Conversion from E/R to Relations.
CS422 Principles of Database Systems From ER to Relations Chengyu Sun California State University, Los Angeles Adapted from Jeffrey Ullman’s lecture notes.
Database Design and Programming Jan Baumbach Adopted from previous slides of Peter Schneider-Kamp.
CS422 Principles of Database Systems Entity-Relationship Model Chengyu Sun California State University, Los Angeles Adapted from Jeffrey Ullman’s lecture.
Introduction to Database Systems, CS420
CPSC-310 Database Systems
Session 2 Welcome: To the fourth learning sequence
Entity-Relationship Model
CPSC-310 Database Systems
COP4710 Database Systems E-R Model.
Cushing, Keller, UlmanJudy Cushing
CPSC-310 Database Systems
Weak Entity Sets Sometimes an E.S. E ’s key comes not (completely) from its own attributes, but from the keys of one or more E.S.’s to which E is linked.
02: ER Model Ch 4.1 – 4.4 Optionally, begin with Ch 2.1.
Constraints in Entity-Relationship Models
The Entity-Relationship Model
CPSC-608 Database Systems
Instructor: Zhe He Department of Computer Science
Database Models Relational Model
Database Systems (資料庫系統)
CPSC-310 Database Systems
CPSC-310 Database Systems
CPSC-310 Database Systems
Overview of Database Systems
Session 2 Welcome: The fifth learning sequence
Overview of Database Systems
The Relational Data Model
CS4433 Database Systems E-R Model.
CPSC-608 Database Systems
CS 405G Introduction to Database Systems
CS 505: Intermediate Topics to Database Systems
CPSC-608 Database Systems
Overview of Database Systems
CS 405G: Introduction to Database Systems
Instructor: Zhe He Department of Computer Science
CS 405G: Introduction to Database Systems
Presentation transcript:

CPSC-310 Database Systems Professor Jianer Chen Room 315C HRBB Lecture #3 Source: modification of slides by Jeffrey Ullman of Stanford U.

Outline of Course Representing things by tables E-R model (Ch. 4) Good table structures Functional Dependencies (Ch. 3) Basic operations on relations Relational Algebra (Ch. 2) Storage management (Chs. 13-14) SQL languages in DDL/DML (Ch. 6) Query processing (Chs. 15-16) More on SQL (Chs. 7-9) Transition processing (Chs. 17-19)

Outline of Course Representing things by tables E-R model (Ch. 4) Good table structures Functional Dependencies (Ch. 3) Basic operations on relations Relational Algebra (Ch. 2) Storage management (Chs. 13-14) SQL languages in DDL/DML (Ch. 6) Query processing (Chs. 15-16) More on SQL (Chs. 7-9) Transition processing (Chs. 17-19)

Roles Sometimes an entity set appears more than once in a relationship.

Roles Sometimes an entity set appears more than once in a relationship. Example 1. Married relationship Husband Wife Bob Ann Joe Sue … … Drinkers Married

Roles Sometimes an entity set appears more than once in a relationship. Example 1. Married relationship Example 2. Buddies relationship Buddy1 Buddy2 Bob Ann Joe Sue Ann Bob Joe Moe … … Husband Wife Bob Ann Joe Sue … … Drinkers Married Drinkers Buddies

Roles Sometimes an entity set appears more than once in a relationship. Example 1. Married relationship Example 2. Buddies relationship Label the edges between the relationship and the entity set with names called roles. Buddy1 Buddy2 Bob Ann Joe Sue Ann Bob Joe Moe … … Husband Wife Bob Ann Joe Sue … … Drinkers Married Drinkers Buddies

Roles Sometimes an entity set appears more than once in a relationship. Example 1. Married relationship Example 2. Buddies relationship Label the edges between the relationship and the entity set with names called roles. Buddy1 Buddy2 Bob Ann Joe Sue Ann Bob Joe Moe … … Husband Wife Bob Ann Joe Sue … … Drinkers Married husband wife Drinkers Buddies

Roles Sometimes an entity set appears more than once in a relationship. Example 1. Married relationship Example 2. Buddies relationship Label the edges between the relationship and the entity set with names called roles. Buddy1 Buddy2 Bob Ann Joe Sue Ann Bob Joe Moe … … Husband Wife Bob Ann Joe Sue … … Drinkers Married husband wife Drinkers Buddies 1 2

Subclasses Subclass = special case = fewer entities = more properties.

Subclasses Subclass = special case = fewer entities = more properties. Assume subclasses form a tree, i.e., no multiple inheritance.

Subclasses Subclass = special case = fewer entities = more properties. Assume subclasses form a tree, i.e., no multiple inheritance. Isa triangles indicate the subclass relationship, which points to the superclass.

Subclasses Subclass = special case = fewer entities = more properties. Assume subclasses form a tree, i.e., no multiple inheritance. Isa triangles indicate the subclass relationship, which points to the superclass. Example. Ales are a kind of beer. Not every beer is an ale, but some are. Suppose that in addition to all the properties (attributes and relationships) of beers, ales also have the attribute color.

Subclasses Subclass = special case = fewer entities = more properties. Assume subclasses form a tree, i.e., no multiple inheritance. Isa triangles indicate the subclass relationship, which points to the superclass. Example. Ales are a kind of beer. Not every beer is an ale, but some are. Suppose that in addition to all the properties (attributes and relationships) of beers, ales also have the attribute color. name Beers manf isa Ales color

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key.

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key. It is allowed for two entities to agree on some, but not all, of the key attributes.

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key. It is allowed for two entities to agree on some, but not all, of the key attributes. We must designate a key for each entity set.

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key. It is allowed for two entities to agree on some, but not all, of the key attributes. We must designate a key for each entity set. In an E/R diagram, underline the key attribute(s).

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key. It is allowed for two entities to agree on some, but not all, of the key attributes. We must designate a key for each entity set. In an E/R diagram, underline the key attribute(s). Courses dept number hours room

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key. It is allowed for two entities to agree on some, but not all, of the key attributes. We must designate a key for each entity set. In an E/R diagram, underline the key attribute(s). Courses dept number hours room Note that hours and room could also serve as a key, but we must select only one key.

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key. It is allowed for two entities to agree on some, but not all, of the key attributes. We must designate a key for each entity set. In an E/R diagram, underline the key attribute(s). In an Isa hierarchy, only the root entity set has a key, which is the key for all entities in the hierarchy. Courses dept number hours room Note that hours and room could also serve as a key, but we must select only one key.

Keys A key is a set of attributes for an entity set such that no two entities in this set agree on all the attributes of the key. It is allowed for two entities to agree on some, but not all, of the key attributes. We must designate a key for each entity set. In an E/R diagram, underline the key attribute(s). In an Isa hierarchy, only the root entity set has a key, which is the key for all entities in the hierarchy. Beers Ales isa name manf color Courses dept number hours room Note that hours and room could also serve as a key, but we must select only one key.

Weak Entity Sets Occasionally, entities of an entity set need “help” to identify them uniquely.

Weak Entity Sets Occasionally, entities of an entity set need “help” to identify them uniquely. Entity set E is said to be weak if in order to identify entities of E uniquely, we need to follow one or more many-one relationships from E and include the key of the related entities from the connected entity sets.

Example (player) name is almost a key for football players, but there might be two players with the same name.

Example (player) name is almost a key for football players, but there might be two players with the same name. (player) number is certainly not a key, since players on two teams could have the same number.

Example (player) name is almost a key for football players, but there might be two players with the same name. (player) number is certainly not a key, since players on two teams could have the same number. But number, together with the (team) name related to the player by relationship Plays-on should be unique.

Example (player) name is almost a key for football players, but there might be two players with the same name. (player) number is certainly not a key, since players on two teams could have the same number. But number, together with the (team) name related to the player by relationship Plays-on should be unique. Players Teams Plays-on name number

Example (player) name is almost a key for football players, but there might be two players with the same name. (player) number is certainly not a key, since players on two teams could have the same number. But number, together with the (team) name related to the player by relationship Plays-on should be unique. Players Teams Plays-on name number Double diamond for supporting many-one relationship. Double rectangle for the weak entity set.

Weak Entity-Set Rules A weak entity set has one or more many-one relationships to other (supporting) entity sets.

Weak Entity-Set Rules A weak entity set has one or more many-one relationships to other (supporting) entity sets. Not every many-one relationship from a weak entity set need be supporting.

Weak Entity-Set Rules A weak entity set has one or more many-one relationships to other (supporting) entity sets. Not every many-one relationship from a weak entity set need be supporting. The key for a weak entity set is its own underlined attributes and the keys for the supporting entity sets.

Weak Entity-Set Rules A weak entity set has one or more many-one relationships to other (supporting) entity sets. Not every many-one relationship from a weak entity set need be supporting. The key for a weak entity set is its own underlined attributes and the keys for the supporting entity sets. Example. (player) number and (team) name is a key for Players in the previous example.

Weak Entity-Set Rules A weak entity set has one or more many-one relationships to other (supporting) entity sets. Not every many-one relationship from a weak entity set need be supporting. The key for a weak entity set is its own underlined attributes and the keys for the supporting entity sets. Example. (player) number and (team) name is a key for Players in the previous example. Players Teams Plays-on name number

How to make a good E/R diagram?

How to make a good E/R diagram? Avoid redundancy.

How to make a good E/R diagram? Avoid redundancy. Don’t use an entity set when an attribute will do.

How to make a good E/R diagram? Avoid redundancy. Don’t use an entity set when an attribute will do. Limit the use of weak entity sets.

How to make a good E/R diagram? Avoid redundancy. Don’t use an entity set when an attribute will do. Limit the use of weak entity sets.

Avoiding Redundancy Redundancy occurs when we say the same thing in two or more different ways.

Avoiding Redundancy Redundancy occurs when we say the same thing in two or more different ways. Redundancy wastes space

Avoiding Redundancy Redundancy occurs when we say the same thing in two or more different ways. Redundancy wastes space and (more importantly) encourages inconsistency.

Avoiding Redundancy Redundancy occurs when we say the same thing in two or more different ways. Redundancy wastes space and (more importantly) encourages inconsistency. The two instances of the same fact may become inconsistent if we change one and forget to change the other (update anomaly), or when we delete instances (deletion anomaly).

Avoiding Redundancy Redundancy occurs when we say the same thing in two or more different ways. Redundancy wastes space and (more importantly) encourages inconsistency. The two instances of the same fact may become inconsistent if we change one and forget to change the other (update anomaly), or when we delete instances (deletion anomaly). Beers name manf manfAddr Bad: This design repeats the manufacturer’s address once for each beer and loses the address if there are temporarily no beers for a manufacturer.

Avoiding Redundancy Redundancy occurs when we say the same thing in two or more different ways. Redundancy wastes space and (more importantly) encourages inconsistency. The two instances of the same fact may become inconsistent if we change one and forget to change the other (update anomaly), or when we delete instances (deletion anomaly). Beers name manf manfAddr name name addr ManfBy Beers Manfs Bad: This design repeats the manufacturer’s address once for each beer and loses the address if there are temporarily no beers for a manufacturer. Good: This design gives the address of each manufacturer exactly once.

Avoiding Redundancy Redundancy occurs when we say the same thing in two or more different ways. Redundancy wastes space and (more importantly) encourages inconsistency. The two instances of the same fact may become inconsistent if we change one and forget to change the other (update anomaly). Beers Manfs ManfBy name manf addr Another example of bad designs 46

How to make a good E/R diagram? Avoid redundancy. Don’t use an entity set when an attribute will do. Limit the use of weak entity sets.

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions:

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute,

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute, or It is the “many” in a many-one or many-many relationship.

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute, or It is the “many” in a many-one or many-many relationship. Beers Manfs ManfBy name Bad: The manufacturer is nothing but a name, and is not at the “many” end of any relationship, it should not be an entity set.

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute, or It is the “many” in a many-one or many-many relationship. Beers Manfs ManfBy name Beers name manf Good: Since nothing is recorded for manufacturers besides their names, there is no need to make the manufacturer an entity set. Bad: The manufacturer is nothing but a name, and is not at the “many” end of any relationship, it should not be an entity set.

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute, or It is the “many” in a many-one or many-many relationship. Beers Manfs ManfBy name Beers name manf Good: However, if we also need to record manufacturers’ addresses: Manfs deserves to be an entity set because of the nonkey attribute addr. Beers deserves to be an entity set because it is the “many” of the many-one relationship ManfBy.

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute, or It is the “many” in a many-one or many-many relationship. Beers Manfs ManfBy name addr Good: However, if we also need to record manufacturers’ addresses: Manfs deserves to be an entity set because of the nonkey attribute addr. Beers deserves to be an entity set because it is the “many” of the many-one relationship ManfBy.

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute, or It is the “many” in a many-one or many-many relationship. Beers Manfs ManfBy name addr Good: However, if we also need to record manufacturers’ addresses: Manfs deserves to be an entity set because of the nonkey attribute addr. Beers deserves to be an entity set because it is the “many” of the many-one relationship ManfBy.

Entity Sets Versus Attributes An entity set should satisfy at least one of the following conditions: It is more than the name of something; it has at least one nonkey attribute, or It is the “many” in a many-one or many-many relationship. Beers Manfs ManfBy name addr Good: However, if we also need to record manufacturers’ addresses: Manfs deserves to be an entity set because of the nonkey attribute addr. Beers deserves to be an entity set because it is the “many” of the many-one relationship ManfBy.

How to make a good E/R diagram? Avoid redundancy. Don’t use an entity set when an attribute will do. Limit the use of weak entity sets.

Don’t Overuse Weak Entity Sets Beginning database designers often doubt that anything could be a key by itself. They make all entity sets weak, supported by all other entity sets to which they are linked.

Don’t Overuse Weak Entity Sets Beginning database designers often doubt that anything could be a key by itself. They make all entity sets weak, supported by all other entity sets to which they are linked. In reality, we usually create unique ID’s for entity sets. Examples include social-security numbers, automobile VIN’s etc.

When Do We Need Weak Entity Sets? The usual reason is that there is no global authority capable of creating unique ID’s.

When Do We Need Weak Entity Sets? The usual reason is that there is no global authority capable of creating unique ID’s. Example: it is unlikely that there could be an agreement to assign unique player numbers across all football teams in the world.

Outline of Course Representing things by tables E-R model (Ch. 4) Good table structures Functional Dependencies (Ch. 3) Basic operations on relations Relational Algebra (Ch. 2) Storage management (Chs. 13-14) SQL languages in DDL/DML (Ch. 6) Query processing (Chs. 15-16) More on SQL (Chs. 7-9) Transition processing (Chs. 17-19)

Outline of Course Representing things by tables E-R model (Ch. 4) Good table structures Functional Dependencies (Ch. 3) Basic operations on relations Relational Algebra (Ch. 2) Storage management (Chs. 13-14) SQL languages in DDL/DML (Ch. 6) Query processing (Chs. 15-16) More on SQL (Chs. 7-9) Transition processing (Chs. 17-19)

From E/R Diagrams to Relations (Converting E/R diagrams into tables)

From E/R Diagrams to Relations (Converting E/R diagrams into tables) a relation is a table

From E/R Diagrams to Relations (Converting E/R diagrams into tables) a relation is a table name manf Winterbrew Pete’s Bud Lite Anheuser-Busch Beers

From E/R Diagrams to Relations (Converting E/R diagrams into tables) a relation is a table name manf Winterbrew Pete’s Bud Lite Anheuser-Busch Beers table/relation name

From E/R Diagrams to Relations (Converting E/R diagrams into tables) a relation is a table Attributes (column headers) name manf Winterbrew Pete’s Bud Lite Anheuser-Busch Beers table/relation name

From E/R Diagrams to Relations (Converting E/R diagrams into tables) a relation is a table Attributes (column headers) name manf Winterbrew Pete’s Bud Lite Anheuser-Busch Beers Tuples (rows) table/relation name

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Schemas

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Schemas Relation schema = relation name and attribute list.

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Schemas Relation schema = relation name and attribute list. Optionally: types of attributes

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Schemas Relation schema = relation name and attribute list. Optionally: types of attributes Example: Beers(name, manf) or Beers(name: string, manf: string)

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Schemas Relation schema = relation name and attribute list. Optionally: types of attributes Example: Beers(name, manf) or Beers(name: string, manf: string) Database = collection of relations.

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Schemas Relation schema = relation name and attribute list. Optionally: types of attributes Example: Beers(name, manf) or Beers(name: string, manf: string) Database = collection of relations. Database schema = all relation schemas in the database.

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Why Relations?

From E/R Diagrams to Relations (Converting E/R diagrams into tables) Why Relations? Very simple model. Often matches how we think about data. Abstract model that underlies SQL, the most important database language today.

From E/R Diagrams to Relations (Converting E/R diagrams into tables)

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes).

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). Beers name manf Relation: Beers(name, manf)

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself.

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself. name addr name manf Drinkers Beers

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself. name addr name manf Drinkers Likes Beers

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself. name addr name manf Drinkers Likes Beers Likes(drinker, beer)

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself. Likes(drinker, beer) Favorite(drinker, beer) Drinkers Beers Likes Favorite name addr manf

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself. name addr name manf Drinkers Likes Beers 2 1 Favorite Likes(drinker, beer) Buddies Favorite(drinker, beer) Buddies(name1, name2)

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself. name addr name manf Drinkers Likes Beers 2 1 Favorite Likes(drinker, beer) Buddies Favorite(drinker, beer) husband wife Buddies(name1, name2) Married Married(husband, wife)

From E/R Diagrams to Relations (Converting E/R diagrams into tables) an entity set  a relation (attributes  attributes). a relationship  a relation with attributes: * keys of the connected entity sets. * attributes of the relationship itself. Likes(drinker, beer) Favorite(drinker, beer) Married(husband, wife) Buddies(name1, name2) Drinkers Beers Likes Favorite Married husband wife name addr manf Buddies 1 2