Bharti Kumari has Published 18 Articles

Strategies For Migrating From SQL to NoSQL Database?

Bharti Kumari

Bharti Kumari

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

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

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

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

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

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

SQL Query to Convert Rows to Columns in SQL Server

Bharti Kumari

Bharti Kumari

Updated on 25-Jan-2023 11:26:39

Introduction The PIVOT operator is used to rotate rows of a table into columns. It is useful for generating cross-tabular reports, where the results are presented in a summary form. The PIVOT operator is available in SQL Server 2005 and later versions. The PIVOT operator is used to convert ... 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

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

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

How to Update Two Tables in One Statement in SQL Server?

Bharti Kumari

Bharti Kumari

Updated on 25-Jan-2023 11:18:05

Introduction In SQL Server, you may sometimes need to update data in multiple tables at the same time. This can be done using a single UPDATE statement, which allows you to update multiple tables in a single query. To update two tables in one statement, you can use the UPDATE ... Read More

How to Setup Compatibility in Microsoft SQL Server?

Bharti Kumari

Bharti Kumari

Updated on 25-Jan-2023 11:13:04

Introduction The compatibility level of a database is important because it determines which features are available and can also affect the performance of queries and other operations in the database. For example, if a database has a compatibility level of 100 (SQL Server 2008), certain features that were introduced in ... Read More

Advertisements