Posts
Consider a database used to record the marks that students get in different exams of different course offerings. (a) Construct an E-R diagram that models exams as entities, and uses a ternary relationship, for the above database. (b) Construct an alternative E-R diagram that uses only a binary relationship between students and course-offerings. Make sure that only one relationship exists between a particular student and course-offering pair, yet you can represent the marks that a student gets in different exams of a course offering.
- Get link
- X
- Other Apps
A university registrar’s office maintains data about the following entities: (a) courses, including number, title, credits, syllabus, and prerequisites; (b) course offerings, including course number, year, semester, section number, instructor(s), timings, and classroom; (c) students, including student-id, name, and program; and (d) instructors, including identification number, name, department, and title. Further, the enrolment of students in courses and grades awarded to students in each course they are enrolled for must be appropriately modelled. Construct an E-R diagram for the registrar’s office.
- Get link
- X
- Other Apps
Draw the E-R diagram which models an online bookstore.
- Get link
- X
- Other Apps
Extend the E-R diagram for keeping track of the exploits of your favorite sports team to track the same information for all teams in a league.
- Get link
- X
- Other Apps
Design an E-R diagram for keeping track of the exploits of your favourite sports team. You should store the matches played, the scores in each match, the players in each match and individual player statistics for each match. Summary statistics should be modelled as derived attributes.
- Get link
- X
- Other Apps
Consider a database used to record the marks that students get in different exams of different course offerings.
- Get link
- X
- Other Apps
a. Construct an E-R diagram that models exams as entities, and uses a ternary relationship, for the above database. b. Construct an alternative E-R diagram that uses only a binary relationship between students and course-offerings. Make sure that only one relationship exists between a particular student and course-offering pair, yet you can represent the marks that a student gets in different exams of a course offering. (a) (b)
A university registrar’s office maintains data about the following entities: (a) courses, including number, title, credits, syllabus, and prerequisites; (b) course offerings, including course number, year, semester, section number, instructor(s), timings, and classroom; (c) students, including student-id, name, and program; and (d) instructors, including identification number, name, department, and title. Further, the enrolment of students in courses and grades awarded to students in each course they are enrolled for must be appropriately modelled. Construct an E-R diagram for the registrar’s office. Document all assumptions that you make about the mapping constraints.
- Get link
- X
- Other Apps
Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents.
- Get link
- X
- Other Apps
Unified Modeling Language (UML)
- Get link
- X
- Other Apps
The Unified Modeling Language (UML) is a graphical model used to create specifications for various components of a software system. The parts of UML include: Class Diagram : similar to E – R diagram Use case Diagram : shows the interaction between users and the system, and the steps of tasks that user performs. Activity Diagram : depicts the flow of tasks between various components of the system. Implementation Diagram : shows the system components (both, software level and hardware level) and their interconnections
Entity - Relationship features
- Get link
- X
- Other Apps
The features of the E – R includes specialization, generalization, higher level & lower level entity sets, attribute inheritance, and aggregation. 1. Specialization An entity set may have subgrouping of entities that are different from other entity set in some form. These entity grouping can be represented using E – R model. The process of describing subgrouping within an entity set is known as Specialization . An entity set may be specialized by more than one distinguish feature. For example, consider an entity set named person , having attributes name , street , and city . The person can be classified as: customer or employee . A set of attributes that includes all the attributes of entity person are described by each of these person type. For example, customer entities may be further described by attribute customer_id , and the employee entities can be further described by attributes employee_id, employee_salary. Consider another example, suppose bank decides to d...
Weak Entity Set
- Get link
- X
- Other Apps
A weak entity set is an entity set which does not have sufficient attributes to form a primary key. A strong entity set is an entity set with primary key. For example, the entity set payment has three attributes: payment_number, payment_date and payment_amount . Each payment entity is distinct, but payments for different loans may share same payment number. Hence, this entity set does not have a primary key, and it is a weak entity set. A weak entity set must be associated with another entity set, called the owner or identifying entity set . The weak entity set is said to be existence dependent on the identifying entity set. The relationship associating weak entity set with identifying entity set is called identifying relationship. In the above example, the identifying entity set for payment is loan , and the relationship loan_payment that associates payments and loan entities is an identifying relationship. The discriminator of a weak entity set, also called ...
E - R Diagram
- Get link
- X
- Other Apps
The E – R Diagram consists of the following major components: Rectangles : represent entity sets Ellipses : represent attributes Diamonds : represent relationship sets Lines : links attributes to entity sets and vice versa Double ellipses : represents multivalued attributes Dashed ellipses : represents derived attributes Double lines : represents total participation of an entity in a relationship set Double rectangles : represents weak entity sets Figure – 1: An illustration of E – R diagram corresponding to customers and loans Figure – 2 depicts two entity sets, customer and loans , related through relationship set borrower. The attributes associated with customer are customer_id, customer_name, customer_munber, customer_address, customer_pincode, customer_city . The attributes associated with loan are loan_number, loan_amount . The customer_id and loan_number are primary keys. The relationship set borrower may have one-to-one, one-to-many, many-to-one, ma...
Keys in DBMS
- Get link
- X
- Other Apps
Individual entities are distinct and the difference among them is expressed through attributes. The values of the attributes should be such that it uniquely identifies the values of the entities. In other words, no two entities are allowed to have same value for all the attributes. Hence a Key is used to identify a set of attributes, relationships, and thus distinguish entities and relationships from each other. 1. Entity Set A superkey is a set of one or more attributes that allows us to uniquely identify an entity in entity set. For example, the customer_id attribute of entity set customer distinguishes one customer from another. Hence, customer_id is a superkey. The customer_name attribute of entity customer cannot be superkey because, two customers can have same name. Another example, the combination of customer_id and customer_name is also a superkey for entity customer. The superkey which does not have any subset is known as candidate key (or primary key) . For examp...
Constraints
- Get link
- X
- Other Apps
There are two types of constraints: Mapping cardinalities, Participation constraints 1. Mapping cardinalities Mapping cardinalities, also known as cardinality ratio, expresses the number of entities to which another entities can be associated via relationship set. The mapping cardinality must be one of the following types for describing a binary relationship set R between entity set A and B : One to one : An entity in A is associated with at most one entity in B , and entity in B is associated with at most one entity in A . One to many : An entity in A is associated with zero or more number of entities in B . While an entity in B can be associated with at most one entity in A . Many to one : An entity in A is associated with at most one entity in B . While an entity in B , can be associated with zero or more number of entities in A . Many to many : An entity in A is associated with zero or more number of entities in B , a...
Entity - Relationship model
- Get link
- X
- Other Apps
The E – R data model employs three notations: Entity sets, Relationship sets, and Attributes. 1. Entity sets An entity is a thing or object in real world that is different from other objects. For example, each employee in a company is an entity. An entity has a set of properties, and unique value for some properties. For example, the employee may have employee_id property whose value uniquely identifies the employee. Thus, 0201 value for employee_id would uniquely identify the employee in a company. An entity set is a set of entities of the same type that may share same properties, or attributes. For example, the set of all persons who are employees at a company can be defined as the entity set employee. Entity sets do not need to be disjoint. For example, a person may be an employee entity, a customer entity, both or neither. An entity is represented by set of attributes . Attributes are properties possessed by each member of the entity s...
Application Architecture in DBMS
- Get link
- X
- Other Apps
Database applications are usually divided into two or three parts. In a two – tier architecture , the client machine uses query language statement and invokes database system functionally at the server machine. For interaction between the client and the server, application program interface like JDBC and ODBC are used. In a three – tier architecture , the client machine acts as a front end and do not directly call database. Instead, it communicates through forms interface with an application server, and the application server communicates with the database to access data. Figure – 1: Two – tier and three – tier architecture