Question

In: Computer Science

Define database relationship and name its type?

Define database relationship and name its type?

Solutions

Expert Solution

There are mainly three types of database relationships:

  1. One to One Relationship
  2. One to Many Relationship
  3. Many to Many Relationship

One to One Relationship:

1:1 relationship implies every record in table, say A relates to only one record in other table, say B.

Example: A person has passport. There are 2 tables: person and passport. A person cna have only 1 passport. Thus, 1:1 relationship.

One to Many or Many to One Relationship:

It occurs when one record in table relates to one or more records of other table. 1:n

Example: customer has account or Student has Subjects. There are 2 tables say, Customer and account. A customer can have one or more accounts. 1:n relationship. Similar case of student and subject.

Many to Many Relationship:

It occurs when one record in first table relates to one or more records of second table and one record of second table relates to one or more records of first table. m:n relationship.

Example: Customer and Product relationship. There re 2 tables: customer and product. A customer can take one or more products. Similarly, one product can be taken by one or more customers.


Related Solutions

In you own words explain what relationship database is. Discuss the benefits of using relationship database...
In you own words explain what relationship database is. Discuss the benefits of using relationship database for improving workflow and efficiency of business decision-making processes.
Question 1: In the NCBI database, retrieve the nucleotide sequences NG011676. Report: Gene name, database name....
Question 1: In the NCBI database, retrieve the nucleotide sequences NG011676. Report: Gene name, database name. Number of exons and its position (the start and the end of each exon). The start and the end of coding region (CDS) Accession number of protein from this gene and the length of polypeptide. Question 2: Use NG011676 to run GenScan. Report the results and compare the results with information of this gene from Question 1. Question 3: Use NG011676 to run FGENESH...
Define what a relational database is. Describe its importance to an organization and why securing it...
Define what a relational database is. Describe its importance to an organization and why securing it is important
talk about database encryption and what type of encryption for database
talk about database encryption and what type of encryption for database
Please TYPE your answers: (a) Name the types of NONsampling error and define them in a...
Please TYPE your answers: (a) Name the types of NONsampling error and define them in a sentence or two. (b) Name the types of sampling error and define them in a sentence or two.
1.Create a Database in Access with the information The database must include: Database name: Monaco Enterprise  Mark...
1.Create a Database in Access with the information The database must include: Database name: Monaco Enterprise  Mark Johnson #87451 Table name: Contacts Delete the Primary key. Fields name and data type are (remember to choose the data type): Field Name Data Types Employee Name Short text Name Short text Last Name Short Text Work Yes/No 2.Go to the “Datasheet View” and enter the data. * Remember to save the table. 3.Move the last name field after the employee name. 4.The (data)...
factory (including the name and the name of the director) needs to establish a management database...
factory (including the name and the name of the director) needs to establish a management database to store the following information: I) A factory has a number of workshops, each workshop has the workshop number, workshop director's name, address and telephone number. II) There are more than one workers in each workshop, and each worker has a staff number, name, age, sex type of work. III) A workshop produces a variety of products, each of which has the product number...
Database exercise: inpatient cases Create database using name RUMKIT Create tables below in that database patient(idPatient,...
Database exercise: inpatient cases Create database using name RUMKIT Create tables below in that database patient(idPatient, fullName, biologicalMother, birthdate, address) doctor(idDr, fullName, specialization, consulRates) inpatient(idPatient, entryTime, outTime, idDr, idRoom). Please make entryTime as column that is going to be filled automatically when care record is being add room(idRoom, roomName, cost) fill the data above to each table Create sql query and relational algebra expressions for the query Please give me detailed answer so I could learn from it. Thank you...
Define the concept of menu costs and explain its relationship with the assumption of monetary neutrality
Define the concept of menu costs and explain its relationship with the assumption of monetary neutrality
Define customer relationship management and explain its associated tools and levels of relationships.
Define customer relationship management and explain its associated tools and levels of relationships.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT