Articles on Trending Technologies

Technical articles with clear explanations and examples

Surrogate Key in RDBMS

Ricky Barnes
Ricky Barnes
Updated on 14-Mar-2026 1K+ Views

A Surrogate Key is a system-generated unique identifier in a database that has no actual business meaning. Its only purpose is to uniquely identify each row in a table. Common examples include auto-increment integers, GUIDs, and system-generated codes. Surrogate Key vs Natural Key Unlike a natural key (like Student_ID or Email) which has real-world meaning, a surrogate key is purely artificial − it exists only to serve as a unique identifier for data management and analysis purposes. Example In the following ProductPrice table, the Key column is a surrogate key − it has no business meaning ...

Read More

Super Key in RDBMS

Ricky Barnes
Ricky Barnes
Updated on 14-Mar-2026 3K+ Views

A Super Key is an attribute (or a set of attributes) that uniquely identifies a tuple (row) in a table. Any combination of columns that can uniquely identify each row is a super key. It is a superset of Candidate Key, since candidate keys are the minimal super keys with no redundant attributes. Example Consider the following Student table ? Student_ID Student_Enroll Student_Name Student_Email S02 4545 Dave ddd@gmail.com S34 4541 Jack jjj@gmail.com S22 4555 Mark mmm@gmail.com Super Keys The following are some of the super ...

Read More

Entity Integrity Rule in RDBMS

Alex Onsman
Alex Onsman
Updated on 14-Mar-2026 6K+ Views

The Entity Integrity Rule in RDBMS states that every table must have a primary key, and the primary key column(s) cannot contain NULL values. This ensures that every row in a table is uniquely identifiable. Example 1: Student Table Consider the following Student table ? Student_ID (PK) Student_Name Student_Awards S001 Alice Gold Medal S002 Bob NULL S003 Charlie Silver Medal Here Student_ID is the primary key. We cannot use Student_Awards as the primary key since not every student would have received an award (it can be ...

Read More

Composite Key in RDBMS

Amit Diwan
Amit Diwan
Updated on 14-Mar-2026 5K+ Views

A composite key is a primary key that consists of two or more columns combined to uniquely identify each row in a table. A single column alone may not be unique, but the combination of multiple columns together forms a unique identifier. Example 1: Order Details In an order details table, a single OrderID can appear in multiple rows (for different products), and a single ProductID can appear in multiple orders. However, the combination of OrderID + ProductID is unique for each row ? OrderDetails ...

Read More

Referential Integrity Rule in RDBMS

David Meador
David Meador
Updated on 14-Mar-2026 10K+ Views

The Referential Integrity Rule in RDBMS is based on the relationship between Primary Keys and Foreign Keys. The rule states that a foreign key in one table must have a matching valid primary key in the referenced table, ensuring that references between tables are always valid. Referential Integrity Rule Referential integrity ensures that relationships between tables remain consistent. Specifically − A foreign key value must either match an existing primary key value in the referenced table, or be NULL. You cannot insert a foreign key value that does not exist in the referenced table. You cannot ...

Read More

Future of RDBMS

Amit Diwan
Amit Diwan
Updated on 14-Mar-2026 879 Views

While Big Data and NoSQL databases have become popular choices for modern data solutions, the crucial features of RDBMS ensure it remains relevant and widely used. RDBMS is designed to handle structured data with ACID compliance, making it indispensable for applications requiring data integrity and consistency. Why RDBMS Still Matters The RDBMS market continues to grow with approximately 9% annual growth, as reported by Gartner. Although a massive volume of the world's data has been produced in recent years, most business-critical data remains structured − financial records, customer information, inventory, and transactions − all of which are best ...

Read More

Difference between an SAP ERP system and DBMS

Samual Sam
Samual Sam
Updated on 14-Mar-2026 3K+ Views

A DBMS (Database Management System) and an SAP ERP (Enterprise Resource Planning) system serve different purposes. A DBMS manages data storage and retrieval, while an ERP is a complete business application suite that uses a DBMS as one of its components. What is DBMS? A DBMS is a tool or interface used to create, manage, and query databases. Examples include SQL Server, MySQL, Oracle, and PostgreSQL. A DBMS handles data storage, retrieval, indexing, security, and backup. It is mainly designed for and used by technical people like database administrators and developers. What is ERP? ERP (Enterprise ...

Read More

How do you convert an ArrayList to an array in Java?

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 769 Views

An ArrayList provides two toArray() methods to convert it into an array − one returns an Object[] array, and the other returns a typed array. Method 1: toArray() (Returns Object[]) Object[] toArray() Returns an array containing all elements in proper sequence. The returned array type is Object[], so casting is needed to use specific types. Method 2: toArray(T[]) (Returns Typed Array) T[] toArray(T[] a) Returns a typed array containing all elements. Pass an empty array of the desired type and Java allocates the correct size. This is the preferred ...

Read More

Matrix Representation of Graphs

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 15K+ Views

A graph can be represented using an Adjacency Matrix, which is a 2D array that stores the connection information between vertices. Adjacency Matrix An Adjacency Matrix A[V][V] is a 2D array of size V × V where V is the number of vertices in the graph. For an undirected graph, if there is an edge between Vx and Vy, then A[Vx][Vy] = 1 and A[Vy][Vx] = 1 (symmetric matrix). For a directed graph, if there is an edge from Vx to Vy, then only A[Vx][Vy] = 1. Otherwise the value is 0. Adjacency Matrix of an Undirected ...

Read More

How do I add an element to an array list in Java?

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 958 Views

We can add elements to an ArrayList easily using its add() method. The method appends the specified element to the end of the list, or inserts it at a specific index. Syntax boolean add(E e) void add(int index, E element) The first form appends the element to the end. The second form inserts the element at the specified index, shifting existing elements to the right. Example The following example shows how to add elements to an ArrayList using both forms of the add() method ? import java.util.ArrayList; import java.util.List; public ...

Read More
Showing 23931–23940 of 61,297 articles
Advertisements