SQL Articles

Page 9 of 12

CAST function in Cassandra

Raunak Jain
Raunak Jain
Updated on 12-Jan-2023 2K+ Views

Introduction to the CAST Function in Cassandra Cassandra is a highly scalable and distributed NoSQL database that is well-suited for storing and managing large amounts of data. One of the key features of Cassandra is its powerful query language, CQL (Cassandra Query Language), which allows you to easily retrieve and manipulate data stored in Cassandra. One useful function in CQL is the CAST function, which allows you to change the data type of a column or expression. This function is particularly useful when you need to perform calculations or comparisons on data that have different data types. In this article, ...

Read More

Cascadeless in DBMS

Raunak Jain
Raunak Jain
Updated on 12-Jan-2023 2K+ Views

Cascadeless in DBMS: Understanding and Implementing the Concept A database management system (DBMS) is a software that is used to store, organize, and manage data in a structured manner. One of the key concepts in DBMS is cascading, which refers to the automatic propagation of changes made to the data in one table to the related data in other tables. While cascading can be convenient in many cases, it can also lead to unintended consequences, such as data loss. To mitigate this, many DBMSs allow for the use of cascadeless operations, which prevent cascading from taking place. In this article, ...

Read More

Calculation of Serial and Non-Serial Schedules in DBMS

Raunak Jain
Raunak Jain
Updated on 12-Jan-2023 3K+ Views

Introduction In a database management system (DBMS), the scheduler is responsible for managing the execution of concurrent transactions. The scheduler uses a schedule, which is a sequence of actions that the DBMS must execute, to ensure that the system remains in a consistent state and that concurrent transactions do not interfere with each other. There are two types of schedules: serial schedules and non-serial schedules. In this article, we will discuss the calculation of both types of schedules in a DBMS. Serial Schedules A serial schedule is a schedule in which all transactions are executed one after another, without any ...

Read More

Building blocks of a Data Model

Raunak Jain
Raunak Jain
Updated on 10-Jan-2023 3K+ Views

Introduction A data model is a blueprint that represents the organization of data and the relationships between different data entities. It is an essential component of any software system as it defines how data is stored, accessed, and modified. In this article, we will explore the building blocks of a data model and how they work together to form a cohesive whole. Data Entities The first building block of a data model is data entities, which represent the objects or concepts that are relevant to the system. For example, in an e-commerce system, data entities might include products, customers, orders, ...

Read More

Sqoop Integration with Hadoop Ecosystem

Nitin
Nitin
Updated on 25-Aug-2022 383 Views

Data was previously stored in relational data management systems when Hadoop and big data concepts were not available. After introducing Big Data concepts, it was essential to store the data more concisely and efficiently. However all data stored in the related data management system needs to be transferred to the Hadoop archive. With Sqoop, we can transfer this amount of personal data. Sqoop transfers data from a related database management system to a Hadoop server. Thus, it facilitates the transfer of large volumes of data from one source to another. Here are the basic features of Sqoop − Sqoop ...

Read More

Difference between Delete and truncate in sql query

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 04-Aug-2022 18K+ Views

Both the TRUNCATE statement and the DELETE statement are included in the category of SQL queries for deleting the data stored in a table. They carry out deletion operations on records or rows of a table that are no longer needed. A condition is applied before each entry in the table that is being deleted when using the DELETE command. To put it another way, it is possible to delete one or more rows all at once. However, with the TRUNCATE command, each row is removed from the table simultaneously. When we delete something using the DELETE query, a log ...

Read More

Floyd's triangle in PL/SQL

sudhir sharma
sudhir sharma
Updated on 01-Feb-2022 780 Views

PL/SQL is a combination of SQL along with the procedural features of programming languagesFLOYD’s triangle − it is a triangle formed by natural numbers. It is the triangle formed by filling numbers in rows starting from 1 at the top-left corner. It is a right-angled triangle i.e. the count of numbers in each row is the same as the row number.In this problem, we are given a natural number N. Our task is to create Floyd’s triangle in PL/SQL.Let’s take an example to understand the problemInput: 16 Output: 1 2 3 4 5 6 7 8 9 10 11 12 ...

Read More

Finding sum of first n natural numbers in PL/SQL

sudhir sharma
sudhir sharma
Updated on 01-Feb-2022 8K+ Views

In this problem, we are given a number N. Our task is to finding sum of first n natural numbers in PL/SQL.PL/SQL is a combination of SQL along with the procedural features of programming languages.PL/SQL has the following features −PL/SQL is tightly integrated with SQL.It offers extensive error checking.It offers numerous data types.It offers a variety of programming structures.It supports structured programming through functions and procedures.It supports object-oriented programming.It supports the development of web applications and server pages.PL/SQL has the following advantages −SQL is the standard database language and PL/SQL is strongly integrated with SQL. PL/SQL supports both static and ...

Read More

Find the area and perimeter of right triangle in PL/SQL

sudhir sharma
sudhir sharma
Updated on 27-Jan-2022 1K+ Views

In this problem, we are given three values: base, height and hypotenuse of a right triangle. Our task is to find the area and perimeter of the right triangle in PL/SQL.PL/SQL is a combination of SQL along with the procedural features of programming languagesLet's take an example to understand the problem, Input : height = 4, base = 3, hypotenuse = 5 Output : area = 6, perimeter = 12Explanation −1 + 22 + 333 + 4444 = 4800 Solution ApproachA simple approach to solve the problem is using the formula for the area and perimeter of the triangle.Area = ...

Read More

Difference Between ROLAP and MOLAP

AmitDiwan
AmitDiwan
Updated on 15-Apr-2021 3K+ Views

In this post, we will understand the difference between ROLAP and MOLAP.ROLAPIt stands for Relational Online Analytical Processing.It is used for large volumes of data.The access time in ROLAP is slow.It stores data in the form of relation tables.The data in ROLAP is fetched from a data warehouse.It uses complex SQL queries.A static multidimensional view of the data is created in ROLAP.MOLAPIt stands for Multidimensional Online Analytical Processing.It is used for less/limited volumes of data.The access time is quick in MOLAP.Data is stored in a multidimensional array.Data is fetched from the MDDBs database.A sparse matrix is used in MOLAP.Dynamic multidimensional ...

Read More
Showing 81–90 of 115 articles
Advertisements