Caglar's Oracle Blog

Caglar's Oracle Blog

About SQL, PL/SQL and Oracle APEX

  • About Me

How to fix cardinality misestimate?

Posted on 26/05/202308/06/2023 by Caglar

In this post, I am going to explain how to correct the cardinality estimate in 5 different methods. Cardinality estimate is one of the first place to check […]

More Details
Posted in DBALeave a Comment on How to fix cardinality misestimate?

CUME_DIST function

Posted on 05/05/202305/06/2023 by Caglar

In this post, I would like to explain a function that is not well known. CUME_DIST analytic function is used for calculating the cumulative distribution of a data […]

More Details
Posted in PL/SQLLeave a Comment on CUME_DIST function

FOR UPDATE vs FOR UPDATE SKIP LOCKED

Posted on 31/01/202308/10/2024 by Caglar

In this post, I am going to explain how FOR UPDATE and FOR UPDATE SKIP LOCKED clauses work. I would like to demonstrate it with a basic example. […]

More Details
Posted in PL/SQL2 Comments on FOR UPDATE vs FOR UPDATE SKIP LOCKED

NVL vs COALESCE

Posted on 28/10/202229/06/2023 by Caglar

As it is known, NVL and COALESCE functions are used in order to eliminate NULL values. However, NVL function is much more popular in comparison with the COALESCE. […]

More Details
Posted in SQLLeave a Comment on NVL vs COALESCE

How to use MULTISET UNION DISTINCT on collections

Posted on 25/04/202227/04/2022 by Caglar

Let’s start with a basic example. Suppose, you have two PL/SQL collections with the same data type that you want to merge and remove the repetitive data. You […]

More Details
Posted in PL/SQL, SQLLeave a Comment on How to use MULTISET UNION DISTINCT on collections

How to use PL/SQL functions within SQL

Posted on 08/03/202222/03/2022 by Caglar

As it is known, invoking PL/SQL code from SQL cause context switching. SQL is a non-procedural language and it is very different from PL/SQL language. In addition, PL/SQL […]

More Details
Posted in PL/SQL, SQLLeave a Comment on How to use PL/SQL functions within SQL

The power of MATCH_RECOGNIZE

Posted on 24/02/202224/02/2022 by Caglar

MATCH_RECOGNIZE is one of the most powerful feature of SQL. There are several use cases, such as finding series of consecutive rows, pattern matching, etc. Once you understand […]

More Details
Posted in SQLLeave a Comment on The power of MATCH_RECOGNIZE

LISTAGG Enhancements

Posted on 31/01/202229/12/2023 by Caglar

If you consider to aggregate data from multiple rows into a single column, LISTAGG might be the first function that comes to your mind. It has been enhanced […]

More Details
Posted in SQLLeave a Comment on LISTAGG Enhancements

WITH clause and Depth First Search

Posted on 27/01/202227/01/2022 by Caglar

In this article, I am going to explain how you can implement the depth first search with using the WITH clause or also known as subquery factoring clause. […]

More Details
Posted in SQL3 Comments on WITH clause and Depth First Search

How to reorder columns of table

Posted on 23/01/202227/01/2022 by Caglar

If you want to change the order of the columns of any table without recreating it, then the following trick will work for you. Suppose you want to […]

More Details
Posted in SQL4 Comments on How to reorder columns of table

Posts navigation

Older posts
Newer posts

Recent Posts

  • How to use LONG column in the WHERE clause
  • How to use XMLTABLE
  • How to implement wait spinner in APEX dynamic action
  • How to list all privileges of a user
  • How to create or alter a job

Recent Comments

  • Alexandre on How to implement wait spinner in APEX dynamic action
  • Maurits Groenenberg on How to view alert log file
  • Caglar on FOR UPDATE vs FOR UPDATE SKIP LOCKED
  • Anjali Damani on FOR UPDATE vs FOR UPDATE SKIP LOCKED
  • Caglar on How to implement wait spinner in APEX dynamic action

Categories

  • APEX
  • DBA
  • PL/SQL
  • SQL
  • Uncategorized
  • XQuery

Flag Counter

© Copyright 2025, Çağlar Polat