Question

In: Computer Science

Introduction to Database SHort answer question -1)Can intersection data be placed in the entity box of...

Introduction to Database SHort answer question

-1)Can intersection data be placed in the entity box of one of the two entities in the many-to-many binary relationship? If yes, describe which one. If not, where can you put it? Explain.

-2)What is the difference between a record type and an occurrence of that record? Explain and give example(s).

-3)Name at least 4 entities, some sample attributes for each entity, and the primary key field for each entity, in a university environment .

4)How foreign key is used to set-up one-to-many relationships in relational databases? Explain and give example (example from the lecture is ok).

5) How to implement Many-to-Many relationship in a relational Database? Explain and give example (example from the lecture is ok)

6)Describe referential integrity problem in general. In the specific case of deleting a record in a table on the “one side” of a one-to-many relationship, how would referential integrity occur?

Solutions

Expert Solution

Solution:

1.Ans:

No, intersection data cannot be placed in the entity box of the two entities in many-to-many binary relationship because interection data means a new attribute which is commonly present in the either of the entities which can be either by association or combination and intersecting data cannot be attributed to both the entities that has the common occurences.

2.Ans:

A record type is a data type of the record and occurence of the record is the instance of the record.

CREATE TYPE student_det IS OBJECT
(
STU_NO NUMBER,
STU_NAME VARCHAR2(150),
PHONE NUMBER 
);

The record student_det is created.

3.Ans:

Student, Program, Branch and University

Attributes are

Student - ID, Name, Address

Program - Prog_ID, Prog_Name, Duration

Branch - Branch_ID, Branch_Name, Address

University - Name, Address, Contact

4.Ans:

Foreign Key is an attribute or a group of attributes that act as a link between two tables in a database. That is why it is used to set one to many relationships in relational database.

Example:

Consider the above example the student enrolled in a course.

Student has studentId which is the primary key which is unique for every student.

Student takes a course. Each course has courseId which is a primary key in Course.

Student should have courseId to know which course he has been joined.

In this way foreign key can be used to set up one to many relationships between relational tables.


Related Solutions

SUBJECT: DATABASE SYSTEMS !!! Please answer the question as early as possible !!! Question 1 You...
SUBJECT: DATABASE SYSTEMS !!! Please answer the question as early as possible !!! Question 1 You are required to draw a complete Crow’s Foot ERD that includes the following entity relationship components based on the below descriptions: i) Identify all of the entities and its attributes. ii) Identify all possible relationships and its connectivity. iii) Identify the primary key and foreign key for each entity. iv) Identify the participation constraint and cardinality for each relationship. A Super5 company contains many...
1- How can database systems improve data quality and data integrity? 2- Discuss database constraints: Primary...
1- How can database systems improve data quality and data integrity? 2- Discuss database constraints: Primary key, check, and referential integrity constraints? Give an example for each.
There are many kinds of entity relationships in a database model. The relationships can be classified by the following things.
There are many kinds of entity relationships in a database model. The relationships can be classified by the following things.Cardinality: maximum and minimumDegree: binary, ternary, degree 4, and so forthEntity type: strong, weak, ID-dependent, and supertype or subtypeWhat are these different types of classifications? Do they overlap, or do they each tell us something unique about the entity relationship? Why is it important to classify each of these types in an ERD model?
Question #1 Data Modelling is the primary step in the process of database design. Compare and...
Question #1 Data Modelling is the primary step in the process of database design. Compare and contrast Conceptual data model versus Physical data model. Illustrates with help of example to list down data (entities), relationship among data and constraints on data. Question #2 What strategic competitive benefits do you see in a company’s use of extranets? Question #3 Explain how Internet technologies are involved in developing a process in one of the functions of the business? Give an example and...
Question 1 [multiple answer] a relation in mathematics Is much like a database table except that...
Question 1 [multiple answer] a relation in mathematics Is much like a database table except that relations are sets, i.e. Don't allow duplicates whereas DBMSs may return tables with duplicates Is not very much like a database table, because it only refers to such expressions as "greater than" Is like a database table with exactly two columns, no more and no fewer Is similar to a database table, but database tables cannot have infinitely many rows Question 2 [multiple answers]...
Short answer please Describe the intersection between science and politics. How do they influence each other?...
Short answer please Describe the intersection between science and politics. How do they influence each other? In your answer, use one example. Explain how race and social class intersect to affect education outcomes. Provide definitions of social capital and cultural capital. Create a scenario in which social capital and cultural capital work together to help a student succeed. Create a different scenario in which social capital and cultural capital combine to diminish a student's chances of success.
Database Normalization Please if you don't know the answer don't comment as "Need More Information." Introduction:...
Database Normalization Please if you don't know the answer don't comment as "Need More Information." Introduction: This lab is designed to help you with practicing normalization concepts implementation. Submission: After finishing the task below, convert the word file to a PDF document and submit it to Brightspace. Task: Using this file, normalize the following tables to be in the third normal form. Remember to consider having the data when you do the normalization. Course_Title Course_Credit_Hours Professor_ID Professor_Name First_day_work Professor Specialization_ID...
Introduction Introduction to Data Structures programming assignments can be completed either in C++ (preferred) or in...
Introduction Introduction to Data Structures programming assignments can be completed either in C++ (preferred) or in Java. In both cases you cannot use libraries or packages that contain pre-built data structures, other than built-in support for objects, arrays, references, and pointers. Classes in C++ and Java can represent anything in the real world. This assignment is to write a compiler for Z++ programming language. The Z++ Programming Language Your program will test if an expression entered by the application user...
Introduction Introduction to Data Structures programming assignments can be completed either in C++ (preferred) or in...
Introduction Introduction to Data Structures programming assignments can be completed either in C++ (preferred) or in Java. In both cases you cannot use libraries or packages that contain pre-built data structures, other than built-in support for objects, arrays, references, and pointers. Classes in C++ and Java can represent anything in the real world. This assignment is to write a compiler for Z++ programming language. The Z++ Programming Language Your program will test if an expression entered by the application user...
Database Question Create two entities for Online Journalists business. Each entity must have 5 attributes and...
Database Question Create two entities for Online Journalists business. Each entity must have 5 attributes and explain the type of each attribute.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT