Oracle 12c new features (Part – 2)

Posted 3 CommentsPosted in Oracle, SQL

We have covered Top N queries and Invisible columns in Oracle 12c New Features (Part – 1) In this article, we will learn: Session-Level Sequences Cascading Truncate DDL Logging Identity Columns Multiple Index 3. Session-Level Sequences: In Oracle 12c the CREATE SEQUENCE has a new clause to specify the scope of the sequence – either […]

Oracle 12c new features (Part – 1)

Posted 1 CommentPosted in Oracle, SQL

In this article, we will learn the top Oracle 12c new features for developers. Top N Queries: This is a way of limiting the number of rows returned to the first ‘N’ meeting the relevant criteria. For example you might wish to retrieve the top 10 highest paid employees. Before Oracle 12c there were several […]

Order By clause in Oracle : Must Know

Posted Posted in Oracle, SQL

In this article, we will learn what a developer should know about Order by clause in Oracle. When multiple columns/expressions are specified in the ORDER BY clause, the precedence of sorting is left to right. The ORDER BY clause can order in ascending (ASC) or descending (DESC) sequence, or a mix of both. If ASC […]

PL/SQL to Select row count per table in schema

Posted Posted in Oracle, PL/SQL

Function to calculate count using dynamic SQL, for an input table name

USER_TABLES has all the table statistics for the same schema. How to invoke above functions:

© 2015, All rights reserved.

PseudoColumns in Oracle

Posted 2 CommentsPosted in Oracle, SQL

In this article, we will learn PseudoColumns in oracle. A pseudocolumn behaves like a table column, but is not actually stored in the table. You can select from pseudocolumns, but you cannot insert, update, or delete their values. A pseudocolumn is also similar to a function without arguments However, functions without arguments typically return the […]

Reset a sequence in Oracle

Posted Posted in Oracle, SQL

In oracle, there is no built in commend to reset sequence.So we can look at a work around to reset sequence using a procedure.

© 2015, All rights reserved.

PIVOT in Oracle 11G to Select Rows As Columns

Posted Posted in Oracle, SQL

In this article, we will learn: how to┬ádisplay rows as columns in oracle. Before 11G, the solution to the pivot problem was with a combination of max and decode but in 11g, with the PIVOT syntax, the same query can be written in a more compact, readable form. Let’s take an example to understand it […]