Oracle Blog

Oracle Blog

Oracle SQL, PL/SQL and APEX

  • About Me

Category: SQL

How to delete duplicate rows

Posted on 26/09/202305/10/2023 by admin

Basically, there are several ways to do this. In this post, I show two different ways. Let’s start with a basic example. Set Up Checking if the table […]

More Details
Posted in PL/SQL, SQLLeave a Comment on How to delete duplicate rows

How to use dynamic SQL with DBMS_SQL

Posted on 23/09/202305/10/2023 by admin

There may be situations where we need to run dynamic queries in our developments. We can utilize execute immediate statement or DBMS_SQL package in order to use dynamic […]

More Details
Posted in PL/SQL, SQLLeave a Comment on How to use dynamic SQL with DBMS_SQL

ORA-01704 string literal too long

Posted on 28/06/202304/07/2023 by admin

ORA-01704 error occurs when a string literal more than 4000 characters in SQL. In the example below the string length is exactly 4000 characters. So, if one character […]

More Details
Posted in SQLLeave a Comment on ORA-01704 string literal too long

NVL vs COALESCE

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

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 admin

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 admin

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 admin

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/202212/09/2023 by admin

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 admin

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 SQLLeave a Comment on WITH clause and Depth First Search

How to reorder columns of table

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

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

Recent Posts

  • How to convert BLOB to CLOB
  • How to convert CLOB to BLOB
  • How to delete duplicate rows
  • How to use dynamic SQL with DBMS_SQL
  • ORA-01704 string literal too long

Recent Comments

  • Alex on How to reorder columns of table
  • admin on How to generate, parse and use JSON data
  • Johann on How to generate, parse and use JSON data
  • admin on How to reorder columns of table
  • Yogendra on How to reorder columns of table

Categories

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

Flag Counter

© Copyright 2023, Çağlar Polat