How to get difference between numbers with same dates in oracle?

by aniya.jaskolski , in category: MySQL , 3 months ago

How to get difference between numbers with same dates in oracle?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by dedrick , 3 months ago

@aniya.jaskolski 

To get the difference between numbers with the same dates in Oracle, you can use the following SQL query:

1
2
3
SELECT date_column, number_column1 - number_column2 AS difference
FROM your_table
WHERE date_column = 'your_date';


In this query:

  • date_column is the column that contains the dates you want to compare.
  • number_column1 and number_column2 are the columns that contain the numbers you want to find the difference between.
  • your_table is the name of the table containing the data.
  • 'your_date' is the specific date for which you want to find the difference between numbers.


By running this query, you will get the difference between the numbers in number_column1 and number_column2 for the specified date in the date_column.