Relative Content

Tag Archive for sqloracle

SQL pivot and sum total

I am using oracle 19.24. I am debugging my SQL query and found some weird thing. Here are testing scripts:

SQL pivot and sum total

I am using oracle 19.24. I am debugging my SQL query and found some weird thing. Here are testing scripts:

SQL pivot and sum total

I am using oracle 19.24. I am debugging my SQL query and found some weird thing. Here are testing scripts:

Oracle 19c Substract workdays? [duplicate]

This question already has answers here: Oracle query to get the number of business days between 2 dates (2 answers) Oracle query to get the number of business days between 2 dates, excluding holidays (1 answer) Function to get number of weekdays between two dates excluding holidays (3 answers) Closed 9 mins ago. I was […]

Queue monitoring oracle script

I am trying to monitor a queues on a dashboard.
I want my select to return something even if the queue table is empty, look at my current qry.

Queue monitoring oracle script

I am trying to monitor a queues on a dashboard.
I want my select to return something even if the queue table is empty, look at my current qry.

Partition(partition_name) VS Where clause

I have a table with range partitions on a date column, I used to query the data using where cause to fetch the transformed data of particular day. But as the data is huge (billions of rows) the query used to take few minutes to execute even when I i used where condition on the partition column. As I’ve read over internet many people claiming oracle handles the partitions internally when used where clause, but i tried to fetch the same data using partition for or partition() example.. FROM table_name PARTITON FOR(DATE '2024-09-17'), and this gave the result in few seconds.