DBMS Concepts

DBMS Tutorial Components of DBMS. Applications of DBMS The difference between file system and DBMS. Types of DBMS DBMS Architecture DBMS Schema Three Schema Architecture. DBMS Languages. What is Homogeneous Database? DBMS Functions and Components Advantages and Disadvantages of Distributed Database Relational Database Schema in DBMS Relational Schema Transaction Processing in DBMS Discriminator in DBMS Introduction to Databases

DBMS ER Model

ER model: Entity Relationship Diagram (ERD) Components of ER Model. DBMS Generalization, Specialization and Aggregation.

DBMS Relational Model

Codd’s rule of DBMS Relational DBMS concepts Relational Integrity Constraints DBMS keys Convert ER model into Relational model Difference between DBMS and RDBMS Relational Algebra DBMS Joins

DBMS Normalization

Functional Dependency Inference Rules Multivalued Dependency Normalization in DBMS: 1NF, 2NF, 3NF, BCNF and 4NF

DBMS Transaction

What is Transaction? States of transaction ACID Properties in DBMS Concurrent execution and its problems DBMS schedule DBMS Serializability Conflict Serializability View Serializability Deadlock in DBMS Concurrency control Protocols

Difference

Difference between DFD and ERD

Misc

Advantages of DBMS Disadvantages of DBMS Data Models in DBMS Relational Algebra in DBMS Cardinality in DBMS Entity in DBMS Attributes in DBMS Data Independence in DBMS Primary Key in DBMS Foreign Key in DBMS Candidate Key in DBMS Super Key in DBMS Aggregation in DBMS Hashing in DBMS Generalization in DBMS Specialization in DBMS View in DBMS File Organization in DBMS What Is A Cloud Database What Is A Database Levels Of Locking In DBMS What is RDBMS Fragmentation in Distributed DBMS What is Advanced Database Management System Data Abstraction in DBMS Checkpoint In DBMS B Tree in DBMS BCNF in DBMS Advantages of Threaded Binary Tree in DBMS Advantages of Database Management System in DBMS Enforcing Integrity Constraints in DBMS B-Tree Insertion in DBMS B+ Tree in DBMS Advantages of B-Tree in DBMS Types of Data Abstraction in DBMS Levels of Abstraction in DBMS 3- Tier Architecture in DBMS Anomalies in Database Management System Atomicity in Database Management System Characteristics of DBMS DBMS Examples Difference between Relational and Non-Relational Databases Domain Constraints in DBMS Entity and Entity set in DBMS ER Diagram for Banking System in DBMS ER Diagram for Company Database in DBMS ER Diagram for School Management System in DBMS ER Diagram for Student Management System in DBMS ER Diagram for University Database in DBMS ER Diagram of Company Database in DBMS Er Diagram Symbols and Notations in DBMS How to draw ER-Diagram in DBMS Integrity Constraints in DBMS Red-Black Tree Deletion in DBMS Red-Black Tree Properties in DBMS Red-Black Tree Visualization in DBMS Redundancy in Database Management System Secondary Key in DBMS Structure of DBMS 2-Tier Architecture in DBMS Advantages and Disadvantages of Binary Search Tree Closure of Functional Dependency in DBMS Consistency in Database Management System Durability in Database Management System ER Diagram for Bank Management System in DBMS ER Diagram for College Management System in DBMS ER Diagram for Hotel Management System in DBMS ER Diagram for Online Shopping ER Diagram for Railway Reservation System ER Diagram for Student Management System in DBMS Isolation in DBMS Lossless Join and Dependency Preserving Decomposition in DBMS Non-Key Attributes in DBMS Data Security Requirements in DBMS DBMS functions and Components Difference between RDBMS and MongoDB Database Languages and Interfaces in DBMS Starvation in DBMS Properties of Transaction in DBMS What is Heuristic Optimization In DBMS Transaction and its Properties in DBMS What is Denormalization in DBMS

Database Languages and Interfaces in DBMS

For many people and businesses, databases are essential because they offer a useful method of arranging and storing data on a computer. Programmers use database languages to administer and keep track of electronic databases and their management systems. These languages carry out a number of crucial operations that support the proper operation of a database management system. This defines database languages, explains the various language kinds, and offers a list of popular database languages along with their applications.

Database Languages

Database languages are a type of computer language used by developers to construct and make use of databases, which constitute electronic collections of organized information that users can access. These languages are often referred to as language queries or data query languages. With the use of these languages, users may do a variety of activities, including establishing and updating data, limiting access to it, and conducting database administration system (DBMS) searches. A database management system (DBMS) is a technological tool used to record, analyze, and retrieve data from databases by interacting with users, applications, and the databases themselves.

Database Languages and Interfaces in DBMS

Users can express database changes and queries or requests for data using the database languages that are offered by a database administration system (DBMS). SQL, the common programming syntax for many databases, is one of the numerous instances of database languages that are available. Four sublanguages make up database languages, each of which performs a distinct purpose.

Types of Database Languages

There are four types of database languages. Four categories of database programming languages and their applications are as follows: 

1. The language for Data Definition (DDL) 

By defining the database schema the structure that symbolizes the way data is arranged data definition language (DDL) builds the foundation of the database. The creation and modification of tables, files, indexes, and columns inside databases are among its frequently utilized functions. Users can also discard or rename the current database or any of its components using this language.

This is an inventory of DDL statements:

  • CREATE: Generates a new object or database, like a column, table, or index. 
  • ALTER: Modifies an object's or database's structure 
  • DROP: Removes any existing objects or the database. 
  • RENAME: Changes the name of an existing item or database.

2. Language for Manipulating Data (DML) 

Data manipulation languages (DML) give users an access point to and the ability to work with the data they keep in databases by handling user queries. Data insertion, updating, and retrieval from the database are among its often performed operations.

This is an inventory of DML statements:

  • INSERT: Updates an existing database table with new information. 
  • UPDATE: Modifies or refreshes table values 
  • DELETE: Deletes rows or information from the table 
  • SELECT: Gets information from a table or more tables.

3. Language for Data Control (DCL) 

Users are able to restrict who may view the data. They save in a database by using data control language (DCL). This language manages the database system's permissions and rights. Users can provide or take away rights from the database using it.

This is an inventory of DCL assertions:

  • GRANT: Provides the user with database access. 
  • REVOKE: Takes away a user's ability to access the database.

4. Language used for Transaction Control (TCL) 

A database's transactions are managed via transaction control language or TCL. Transactions combine several linked tasks into one executable task. For the purchase to be successful, each task must be completed.

The following is a list of TCL, a statement:

  • COMMIT: Completes an action.
  • ROLLBACK: Restores a transaction in the event that any tasks are not completed. 
  • S**AVEPOINT**: Establishes a transactional save point.

Database Language Examples 

The following six database languages are examples of how to utilize them: 

SQL

One of the most widely recognized and established database languages is SQL, which is short for Structured Query Language. You can create queries in a database, and it has languages for both data collection and data manipulation. SQL specifically offers a method for managing and extracting data from relational database management systems. Data is arranged using this kind of DBMS into groupings known as relations. Because SQL is the database language used by the majority of relational databases, many IT-related occupations may need individuals to comprehend it.

XQuery 

A database language called XQuery makes it possible to extract and work with data in XML forms, which is how data is shared online. Any XML-formatted data source may be accessed and retrieved with XQuery. XQuery may be used to extract data for online usage, search plain-text documents on the web for data, and produce reports on data contained in XML databases.

OQL 

The preferred syntax for objective-oriented databases, which express data as variables, functions, or data structures, is called OQL, or object query language. Businesses that wish to store a lot of sophisticated data are fond of these databases. OQL provides you with the ability to run queries and access data in object databases, just like SQL does on relational databases.

SQL/XML 

The SQL/XML language facilitates the manipulation and archiving of XML data in the database that uses SQL. It is a hybrid of SQL and XQuery. Applications may use it to run SQL queries on XML information or the opposite. It comes in handy when you want to make sure that future enhancements or systems that only accept XML are compatible or when you want to get the content from a document with XML.

GraphQL 

An open-source language called GraphQL is compatible with APIs or application programming interfaces that let users deal with data. To avoid releasing too much data, it offers a mechanism to specify the data's structure and the method the system returns information. It's useful when you need to efficiently specify the data, aggregate data from many sources, or extract data from several APIs.

LINQ 

A language called Language Integrated Query, or LINQ, is used to process and extract data from relational databases, XML documents, and other external sources. You can retrieve data from several sources with LINQ instead of needing to utilize a different database language for each one. Because of the consistency this provides across queries for relational databases, objects, and XML, you may filter, sort, and group actions.

Interfaces for Database Management Systems

  • Interfaces based on menus: These interfaces provide the user with a list of options known as menus. Slide-down menus are a crucial approach.
  • Interfaces for graphics users: It presents the user with a schema in diagrammatic form. Most GUIs use a mouse or other pointing device.
  • Natural language interfaces: These interfaces can handle written requests in any language, including English.
  • Forms-based interfaces: These interfaces show each user a form. To add new data, the user can complete every field.
  • Interfaces for parametric users: Bank tellers are examples of parametric users who frequently have a small number of tasks they need to complete on a regular basis. The purpose of this modest group of shortened instructions is to reduce the amount of keystrokes needed for each request.
Database Languages and Interfaces in DBMS
  • Interface for DBA: The majority of database systems provide privileged commands that are exclusive to the DBA personnel.

Meaning of Database System's External Interface

A method of communication that enables other people to interact with the system's database by retrieving, altering, or deleting data is known as an external interface. It acts as a link between the external world and the database.

The purpose of this connection is to enable the machine to be operated and controlled effectively by humans while, at the same time, the machine provides feedback to help the operators make decisions. The interactive features of systems for computers, hand tools, hefty machinery operator controls, and process controls are a few examples of this wide idea of user interfaces. The design factors that come into play while developing user interfaces are connected to or include fields like psychology and ergonomics.

The general aim of the user interface design is to create an interface that makes using a machine in a way that yields the desired outcome simple, effective, and pleasurable (i.e., maximal usability). This often indicates that the machine reduces unwanted outputs to the end user and that the operator has to input as little as possible to produce the desired result.

A human-machine interface (HMI), which connects computers to physical input and output devices like keyboards, mice, and gaming pads, is one of the layers that make up a user interface. Other layers include speakers, printers, and computer displays. A human contact device is a gadget that uses an HMI (HID). Head–computer interfaces (BCIs) or mind–machine interfaces (BMIs) are user interfaces that eliminate the need for actual bodily movement as a step separating the brain and the machine; they employ electrodes as their only input and output device.

Man-machine interface (MMI) and human-computer interface (HCI) are other names for human-machine interfaces. The latter term is used when the machine in issue is a computer. Additional user interface layers, such as tactile, visual, auditory, olfactory, equilibrium, and gustatory, could communicate with any or all of the human senses (tactile, touch, sight, sound, smell, balance, taste).

Interfaces known as composite interfaces (CUIs) communicate with two or more limbs. A graphical user interface (graphical user interface), which consists of a tactile user interface and a visual user interface (GUI) that can show graphics, is the most popular type of CUI. A GUI becomes a multi-media user interface (MUI) when sound is added to it. CUI may be divided into three main categories: augmented, virtual, and standard. Standard CUI makes use of commonplace computer displays, keyboards, and mice for human interaction. The CUI incorporates virtual and employs an immersive interface when it obscures the outside environment to provide a virtual reality.

The CUI is enhanced and makes use of the augmented reality interface when it does not obscure the outside environment and produces augmented reality. A user interface (UI) that communicates with all of the senses is referred to as a qualia interface, after the qualia hypothesis. An X-sense mixed reality interface or an X-sense mixed reality interface with X as the number of perceptions interfaced with is another way to categorize CUIs. An instance of a 3-sense (3S) Minimum CUI is the Smell-O-Vision, which combines visual display, sound, and scents. Similarly, 4-sense (4S) virtual interfaces are those that combine touch and smell, and 4-sense (4S) holographic interfaces are those that combine touch and smell.

Words and Phrases

An operator interface, often known as a human-machine interface (HMI), differs from a user interface. Electronic devices and (personal) computer systems are frequently mentioned when the phrase "user interface" is employed. 

  • When a host or MES (the production of execution system) links a network of computers or other devices to show data. 
  • The interaction between a human and a piece of equipment or machinery is called a human–machine interface, or HMI. It is usually limited to a single piece of equipment. A host control system links several pieces of equipment, and the operator's interface is the communication mechanism used to access or operate those pieces of equipment.
  • To service various user types, the system may present several user interfaces. Two user interfaces, for instance, may be offered by an automated library database: one for staff members (which would have a larger range of features and be more efficient) and one for library users (which would have fewer functions and be easier to use).
  • The term "human-machine interface" (HMI) can apply to the user experience of an electronic device, a car, or an industrial facility. Man-machine interface, or MMI, is the original word that is modified to HMI. Though some may argue that MMI now stands for something distinct, the acronym MMI is still widely used in practice. HCI is an additional acronym that is more frequently used to refer to human–computer interaction. 
  • Operational interface terminal (OIT) and operator contact console (OIC) are other terms used. The names allude to the "layer" that distinguishes a human running a machine from the mechanism itself, regardless of how they are shortened. People can only connect with information systems if the interface is clear and easy to use.