Bharti Kumari has Published 27 Articles

SQL Query to Convert Rows to Columns in SQL Server

Bharti Kumari

Bharti Kumari

Updated on 22-Oct-2023 02:36:05

25K+ Views

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

How to List All Tables in a Schema in Oracle Database?

Bharti Kumari

Bharti Kumari

Updated on 04-Oct-2023 13:11:29

33K+ Views

Introduction In Oracle databases, a schema is a logical grouping of related objects, such as tables, views, and stored procedures. Each schema belongs to a specific database user and has a set of associated privileges. To list all tables in a schema in an Oracle database, you can use one ... Read More

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

Bharti Kumari

Bharti Kumari

Updated on 14-Sep-2023 15:59:24

34K+ Views

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 Convert Epoch Time to Date in SQL?

Bharti Kumari

Bharti Kumari

Updated on 02-Sep-2023 16:04:28

50K+ Views

Introduction The epoch is the date and time relative to which a computer's clock and timestamp values are determined. Epoch time is commonly used in computer systems to represent a point in time. It is typically represented as a single integer value, which represents the number of seconds that have ... Read More

Java Program to Compare Two Objects

Bharti Kumari

Bharti Kumari

Updated on 14-Jul-2023 17:26:05

140 Views

Introduction In Java, objects can be compared using the equals() method, which checks whether two objects are equal based on their properties. When comparing objects in Java, it is important to override the equals() method in the class to ensure that the comparison is done based on the desired properties. ... Read More

Java Program to Concatenate Two List

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 16:00:47

4K+ Views

Introduction In Java, a list is an ordered collection of elements that allows duplicates. Sometimes, we may need to combine two lists into one list. Concatenating two lists means joining the elements of the two lists to form a new list containing all the elements of both lists. There are ... Read More

Java Program to Compute the Sum of Numbers in a List Using While-Loop

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 15:59:29

431 Views

Introduction The Java program to compute the sum of numbers in a list using a while-loop is a simple program that takes a list of integers and computes their sum using a while-loop construct. In this program, an ArrayList of integers is created, and a few numbers are added to ... Read More

Java Program to Compute the Sum of Numbers in a List Using For-Loop

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 15:58:44

2K+ Views

Introduction Java is a popular programming language that is used for developing a wide range of applications, including those that involve working with lists of numbers. One common task is to compute the sum of numbers in a list, which can be accomplished using a for-loop. In this approach, we ... Read More

Java Program to Compute the Running Total of a List

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 15:58:05

497 Views

Introduction The Java program to compute the running total of a list is a simple program that demonstrates the use of loops and lists in Java. The program takes a list of integers as input and computes the running total of the numbers in the list, which is the cumulative ... Read More

Java Program to Compute the Area of a Triangle Using Determinants

Bharti Kumari

Bharti Kumari

Updated on 10-Apr-2023 15:56:57

150 Views

Introduction The Java program to compute the area of a triangle using determinants is a concise and efficient program that calculates the area of a triangle given the coordinates of its three vertices. This program is useful for anyone studying or working with geometry, as it demonstrates how to use ... Read More

Advertisements