Bharti Kumari has Published 27 Articles

Java Program to Combine Two List by Alternatively Taking Elements

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 15:54:37

779 Views

Introduction The Java program to combine two lists by alternatively taking elements is a simple code snippet that takes in two lists of any type of object that can be stored in a list and returns a new list that contains elements from both input lists alternately. The program defines ... Read More

Java Program to Check the Accessibility of an Static Variable By a Static Method

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 15:50:34

204 Views

Introduction In Java, we can define variables and methods as static. A static variable or method belongs to the class itself rather than to the individual objects of the class. Therefore, we can access a static variable or method using the class name, without creating an object of the class. ... Read More

Java Program to Check if two Arrays are Equal or not

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 15:48:30

1K+ Views

Introduction In Java, we can check if two arrays are equal or not by comparing their elements. If the elements in both arrays are the same and appear in the same order, then the two arrays are considered equal. One way to check the equality of two arrays is to ... Read More

Strategies For Migrating From SQL to NoSQL Database?

Bharti Kumari

Bharti Kumari

Updated on 27-Jan-2023 10:18:57

463 Views

Introduction Migrating from a SQL to a NoSQL database is a significant undertaking that requires careful planning and strategizing. It's important to understand the differences between these two types of databases and to identify the specific use cases for which you will be using the NoSQL database. There are several ... Read More

SQL Server Query to Find All Permissions/Access for All Users in a Database

Bharti Kumari

Bharti Kumari

Updated on 27-Jan-2023 10:16:19

31K+ Views

Introduction In SQL Server, permissions are used to control access to database objects, such as tables and views. Each user in a database has a set of permissions that determine what they are able to do within the database, such as SELECT, INSERT, UPDATE, DELETE, and EXECUTE. To view the ... Read More

SQL Query to Demonstrate Updation Anomaly in Referential Integrity in a Table

Bharti Kumari

Bharti Kumari

Updated on 27-Jan-2023 10:13:38

270 Views

Introduction A referential integrity constraint ensures that a foreign key value in one table matches a primary key value in another table. This helps to maintain the consistency and accuracy of the data in a database by preventing the insertion of incorrect or invalid data. However, if there is an ... Read More

SQL Query to Demonstrate Deletion Anomaly in Referential Integrity in a Table

Bharti Kumari

Bharti Kumari

Updated on 27-Jan-2023 10:10:49

220 Views

Introduction A SQL query is a request for data from a database. In the context of demonstrating a deletion anomaly in a table with referential integrity, a SQL query would be used to delete a record from the parent table and observe the impact on the related records in the ... Read More

SQL Query to Demonstrate Addition Anomaly in Referential Integrity in a Table

Bharti Kumari

Bharti Kumari

Updated on 27-Jan-2023 10:07:04

101 Views

Introduction To demonstrate an addition anomaly in a referential integrity in a table, we can create a simple database with two tables: a parent table and a child table. The parent table should have a primary key column, and the child table should have a foreign key column that references ... Read More

Set Database From Single User Mode to Multi User in SQL?

Bharti Kumari

Bharti Kumari

Updated on 25-Jan-2023 11:23:30

14K+ Views

Introduction In SQL, a database can be set to single user mode or multi user mode. When a database is in single user mode, only one user can connect to the database at a time. This can be useful for maintenance tasks that need to be performed on the database, ... Read More

Oracle DataBase – Grant Privileges to a User in SQL Command Line

Bharti Kumari

Bharti Kumari

Updated on 25-Jan-2023 11:20:37

7K+ Views

Introduction In an Oracle Database, privileges are used to control access to the database's objects and operations. A privilege is a permission to perform a specific action on a specific object, such as SELECTing data from a table or EXECUTing a stored procedure. When you create a user in the ... Read More

Advertisements