- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 428 Articles for DBMS
11K+ Views
Let us begin by understanding what a functional dependency is in the database management system (DBMS).Functional DependencyFunctional dependency refers to the relation of one attribute of the database to another. With the help of functional dependency, the quality of the data in the database can be maintained.The symbol for representing functional dependency is -> (arrow).Example of Functional DependencyConsider the following table.Employee NumberNameCitySalary1bobBangalore250002LuckyDelhi40000The details of the name of the employee, salary and city are obtained by the value of the number of Employee (or id of an employee). So, it can be said that the city, salary and the name attributes ... Read More
20K+ Views
The overall design of the database is called database schema. Schema will not be changed frequently. It is the logical structure of a database. It does not show the data in the database.The schema is pictorially represented as follows −Types of SchemaThe different types of schemas are as follows −Physical schema − It is a database design at the physical level.It is hidden below the logical schema and can be changed easily without affecting the application programs.Logical schema − It is a database design at the logical level. Programmers construct applications using logical schema.External − It is schema at view ... Read More
10K+ Views
ProblemDraw of ER model for company considering the following constraints −In a company, an employee works on many projects which are controlled by one department.One employee supervises many employees.An employee has one or more dependents.One employee manages one department.SolutionFollow the steps given below to draw an ER model for the company −Step 1 − Identify the entity setsThe entity set has multiple instances in a given business scenario.As per the given constraints the entity sets are as follows:EmployeeDepartmentProjectDependentStep 2 − Identify the attributes for the given entitiesEmployee − The relevant attributes are name, ssn, sex, address, salary.Department − The relevant ... Read More
9K+ Views
ProblemDraw an ER model for library management application considering the following constraints −In a library multiple students can enroll.Students can become a member by paying an appropriate fee.The books in the library are identified by a unique ID.Students can borrow multiple books from subscribed libraries.SolutionFollow the steps given below to draw an ER model for the library management application −Step 1 − Identify the entity setsThe entity set has multiple instances in a given business scenario.As per the given constraints the entity sets are as follows −BookPublisherMemberSectionGranterStep 2 − Identify the attributes for the given entitiesBook − The relevant attributes ... Read More
18K+ Views
ProblemDraw an ER model of the Banking database application considering the following constraints −A bank has many entities.Each customer has multiple accounts.Multiple customers belong to a single branch.Single customer can borrow multiple loans.A branch has multiple employees.SolutionFollow the steps given below to draw an ER model of the Banking database application −Step 1 − Identify the entity setsThe entity set has multiple instances in a given business scenario.As per the given constraints the entity sets are as follows −CustomerAccountAccountLoanLoanStep 2 − Identify the attributes for the given entitiesCustomer − the relevant attributes are customerName, CustomerID, address.Account − The relevant attributes ... Read More
51K+ Views
ProblemDrawing of ER model of university database application considering the constraints −A university has many departments.Each department has multiple instructors (one person is HOD). Here the HOD refers to the head of department.An instructor belongs to only one department.Each department offers multiple courses, each subject is taught by a single instructor.A student may enroll for many courses offered by different departments.SolutionFollow the steps given below to draw an Entity Relationship (ER) diagram for a University database application −Step 1 − Identifying the entity sets.The entity set has multiple instances in a given business scenario.As per the given constraints the entity ... Read More
3K+ Views
It is the relationship between the instances of two different entity types. Two entities will participate in the relationship.ExamplePerson and events are two different entity types which are related by using the relationship called “attends”.Mapping ER diagram with binary relationshipMapping one to many relationshipExampleHere, Create two tables for two entities.Primary key of one side relation is a foreign key for many side relations.One side relation is customer and many side relations is Order.The primary key cutomerID of the customer is a foreign key of order.The equivalent relations for the above ER diagram are as follows −One-one, many-one, many-many can be ... Read More
7K+ Views
The attributes that cannot be divided into sub-parts are called simple attributes. The attributes which can be divided into sub-parts are called composite attributes.ExampleBalance, account number are simple attributesName, address is called composite attributesLet’s consider an example of how to convert Entity Relationship (ER) model of composite attribute to Relational model.Methods for mappingName of relation = Entity set of ER diagramName of column = Attribute of ER diagramExampleIn this example, Name of the relation =studentName of columns=StdID, name, BranchThe equivalent relation for the above ER diagram is −StudentStdIDNameBranchNow apply this technique for Mapping ER diagram with a composite attribute as ... Read More
2K+ Views
Key is a data item which is used to identify a record or a value used to identify a record in a database is called a key. It helps uniquely to identify an entity from an entity set.Key allows us to identify a set of attributes that make them sufficient to distinguish entities from each other.ExampleAccount number, employee number, customer number are used as a key field because they specifically identify a record stored in a database.Foreign KeyIn a relation, the column whose data values correspond to the values of a key column in another relation is called a foreign ... Read More
3K+ Views
Key is a data item which is used to identify a record or a value used to identify a record in a database is called a key. It helps uniquely to identify an entity from an entity set.Key allows us to identify a set of attributes that make them sufficient to distinguish entities from each other.ExampleAccount number, employee number, customer number are used as key fields because they specifically identify a record stored in a database.Different types of keysThe different types of keys in the database management system (DBMS) are as follows −Primary keySuper keyCandidate keyAlternate keyArtificial keyForeign keyPrimary, super, ... Read More
To Continue Learning Please Login
Login with Google