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?
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...
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.
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...
SECTION B SHORT ANSWER QUESTIONS The short answer questions are worth 50% in this paper. QUESTION...
SECTION B SHORT ANSWER QUESTIONS The short answer questions are worth 50% in this paper. QUESTION ONE (a)The study of risk and return relationship continues to be an area of vital importance for financial planners. Explain risk and return relationship. What is the purpose of a product disclosure statement (PDS)? Is there an argument for scrapping PDSs on the basis that most investors are financially illiterate and don’t read or understand the documents? When making recommendations (assume that you are...
Each short-answer question below can be answered with a few sentences. 2. A colleague of yours...
Each short-answer question below can be answered with a few sentences. 2. A colleague of yours is faced with testing a relationship at the .05 level or significance or the .01 level of significance. What is your advice to your colleague? Why? 3. A colleague of yours has made a decision to decrease the sample size because of limited funding. What should they expect to happen to the probability of uncovering statistically significant findings in their research? Why? 4. What...
Select the best answer for each question. 1. In the short run, a firm will shut...
Select the best answer for each question. 1. In the short run, a firm will shut down if (a) the market price is less than the firm’s average total cost. (b) the market price is less than the minimum of the firm’s average variable cost. (c) the market price is less than the quantity produced. (d) the market price is less than the number of firms in the market. 2. Suppose a firm in a perfectly competitive market is making...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT