Big Data Analytics Articles

Page 120 of 135

Explain Mapping the ER diagrams with binary and ternary relationships(DBMS)?

Bhanu Priya
Bhanu Priya
Updated on 04-Jul-2021 4K+ 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

What is a composite attribute in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 04-Jul-2021 9K+ 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

Explain the concept of key attributes with an example in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 5K+ 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 it 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

What is the degree of relationship set in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 11K+ Views

The number of entity types which took part in the entity relationship is called the degree of relationships.There are three different types of degree of relationships, they are as follows −Unary relationshipBinary relationshipTernary relationshipUnary relationshipIt is the relationship between the instances of a single entity type. It is also called a recursive relationship.ExampleA person is married is a one-to-one relationship between the instances of Person entity type of unary relationship.Binary relationshipIt is the relationship between the instances of two different entity types. Two entities will participate in the relationship.For ExamplePerson and events are two different entity types which are related ...

Read More

Explain the cardinality concept in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 19K+ Views

In the view of databases, cardinality refers to the uniqueness of data values that are contained in a column. High cardinality is nothing but the column contains a large percentage of totally unique values. Low cardinality is nothing but the column which has a lot of “repeats” in its data range.Cardinality between the tables can be of type one-to-one, many-to-one or many-to-many.Mapping CardinalityIt is expressed as the number of entities to which another entity can be associated via a relationship set.For binary relationship set there are entity set A and B then the mapping cardinality can be one of the ...

Read More

What are constraints on ER model in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 31K+ Views

Constraints are used for modeling limitations on the relations between entities.There are two types of constraints on the Entity Relationship (ER) model −Mapping cardinality or cardinality ratio.Participation constraints.Mapping CardinalityIt is expressed as the number of entities to which another entity can be associated via a relationship set.For the binary relationship set there are entity set A and B then the mapping cardinality can be one of the following −One-to-oneOne-to-manyMany-to-oneMany-to-manyOne-to-one relationshipAn entity set A is associated with at most one entity in B and an entity in B is associated with at most one entity in A.One-to-many relationshipAn entity set A ...

Read More

Differentiate between the three models on the basis of features and operations(DBMS)?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 11K+ Views

A database model is a logical structure of a database, which contains the relationships and constraints that determine about how data is stored and accessed. The individual database models are designed based on the rules and concepts. Most data models can be represented by an accompanying database diagram.Types of database modelsThere are so many database models, but most used database models are −Hierarchical database modelRelational modelNetwork modelObject-oriented database modelThe major differences between the hierarchical, network and the relational models are as follows −Hierarchical ModelNetwork ModelRelational ModelOne to many or one to one relationship.Allowed the network mode to support many to ...

Read More

What are the User friendly interfaces provided by DBMS?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 7K+ Views

The different user-friendly interfaces provided by the database management system (DBMS) are as follows −Menu-Based interfaces.Forms-based interfaces.Graphical user interfaces.Natural language interfaces.Speech input and output interfaces.Interfaces for parametric users.Interfaces for the database administrator (DBA).User friendly interfacesLet’s discuss the user-friendly interfaces provided by the DBMS in detail.Menu-based interfacesThese interfaces contain the lists of options through which the user is able to send the request.The Pull-down menus are a very popular technique in web-based user interfaces.These types of interfaces are mainly used by the web browsing users and web clients.Forms-based interfacesThese types of interfaces are displaying a form to each user. The user ...

Read More

What are the TCL commands in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 15K+ Views

Transaction Control language is a language that manages transactions within the database.It is used to execute the changes made by the DML statements.TCL CommandsTransaction Control Language (TCL) Commands are:Commit − It is used to save the transactions in the database.Rollback − It is used to restore the database to that state which was last committed.Begin − It is used at the beginning of a transaction.Savepoint − The changes done till savpoint will be unchanged and all the transactions after savepoint will be rolled back.ExampleGiven below is an example of the usage of the TCL commands in the database management system ...

Read More

What are the DDL commands in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 03-Jul-2021 15K+ Views

Data definition language (DDL) is a language that allows the user to define the data and their relationship to other types of data.Data Definition language statements work with the structure of the database table.Various data types used in defining columns in a database tableIntegrity and value constraintsViewing, modifying and removing a table structureDDL CommandsThe Data Definition Languages (DDL) Commands are as follows −Create − It is used to create a new table or a new database.Alter − It is used to alter or change the structure of the database table.Drop − It is used to delete a table, index, or ...

Read More
Showing 1191–1200 of 1,348 articles
« Prev 1 118 119 120 121 122 135 Next »
Advertisements