Skip to Main Content
Oracle
Live SQL
Help
Sign In
Dark Mode
Home
Home
SQL Worksheet
SQL Worksheet
My Session
My Session
Previous Sessions
Previously Viewed
Utilization
NLS
Schema
Schema
Quick SQL
Quick SQL
My Models
My Scripts
My Scripts
My Tutorials
My Tutorials
Code Library
Code Library
Code Library
Breadcrumb
Search
Area
All
Oracle 19c - 1
SQL General - 16
PL/SQL General - 15
Category
All
Types
All
Tutorials
Scripts
Sort By
Date Added
Executions
Name
Likes
Sort Order
Ascending
Descending
Results Per Page
60
120
180
240
300
360
420
480
540
600
Reset Search
Script
Dynamic CSV to Columns Converter: Polymorphic Table Function Example
An example of how to use polymorphic table functions in 18c to dynamically convert CSV data to colum...
18c, polymorphic table functions
12
71
6.8 years ago
Chris Saxon (Oracle)
Script
18c Echo Polymorphic Table Function
This PTF returns all the columns in the input table tab, and adds to it the columns listed in cols b...
18c ARPLS
3
38
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
Dynamic formula evaluation using Polymorphic Functions
An example of how to use polymorphic table functions to dynamically evaluate formulas. This solutio...
Polymorphic Functions
4
34
4.6 years ago
Eduard Turea
Script
Polymorphic Table Functions (PTFs) with variables
PTF's accept variables for use during parse or execution. This included scalar datatypes and PTF spe...
Polymorphic Table Function PTF Pseudo-Operator
2
26
6 years ago
Darryl Hurley
Script
18c polymorphic table function TAB2KEYVAL
An example of using a polymorphic table function (PTF) to transpose columns to rows
18c, PTF, UNPIVOT
6
24
6.8 years ago
Andrej_SQL
Script
KSCOPE 2019 PTF 1
Setup of data and demo packages and PTF simple function code.
KSCOPE Polymorphic PTF
0
17
5.5 years ago
Darryl Hurley
Script
KSCOPE 2019 PTF 7
CSTORE for Compile State (DESCRIBE) and XSTORE for Execution State (OPEN,FETCH_ROWS and CLOSE.
KSCOPE Polymorphic PTF
0
16
5.5 years ago
Darryl Hurley
Script
18c Skip_col Polymorphic Table Function Example
The skip_col PTF returns all the columns in a table except the columns specified in the PTF input ar...
18c LNPLS
1
16
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
18c To_doc Polymorphic Table Function Example
The to_doc Polymorphic Table Function (PTF) example combines a list of specified columns into a sing...
18c LNPLS
5
15
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
18c Stack Polymorphic Table Function Example
The stack PTF example unpivots the non-null values of the specified numeric columns by converting ea...
18c ARPLS
1
13
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
18c Noop Polymorphic Table Function Example
The noop PTF returns the input rows as the output rows without any modification or filtering. Noop i...
18c ARPLS
4
13
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
Polymorphic Table Function Split Column
A Polymorphic Table Function to split the first column of a table using ; as a separator
Polymorphic Table Function Split Column
2
12
6 years ago
Patch72
Script
Remove columns from query output
Examples of how to omit columns from queries using polymorphic table functions and SQL macros. Se...
SQL macros, polymorphic table functions, select except
2
11
2.9 years ago
Chris Saxon (Oracle)
Script
Polymorphic Table Functions (PTFs) Interrogate what they are passed
Polymorphic Table Functions (PTFs) Interrogate what they are passed
Polymorphic Table Functions PTF
1
10
6 years ago
Darryl Hurley
Script
KSCOPE 2019 PTF 3
Add and populate columns
KSCOPE Polymorphic PTF
0
10
5.5 years ago
Darryl Hurley
Script
Polymorphic Table Function (PTF) Exception Demo
PTF's can throw exceptions. This script demonstrates when they will (and when they wont) pass to a c...
Polymorphic Table Functions PTF
2
8
6 years ago
Darryl Hurley
Script
Polymorphic Table Function (PTF) Rick-Roll
PTF's have a row replication feature to add rows to result sets as required.
Polymorphic Table Functions PTF
1
7
6 years ago
Darryl Hurley
Script
KSCOPE 2019 PTF 5
Introduce GET_ROW_SET
KSCOPE Polymorphic PTF
0
7
5.5 years ago
Darryl Hurley
Script
18c Row_num Polymorphic Table Function Example
The row_num PTF example appends a sequence column to a table.
18c ARPLS
1
7
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
KSCOPE 2019 PTF 6
Interrogate fetched row set to populate added column
SCOPE Polymorphic PTF
0
6
5.5 years ago
Darryl Hurley
Script
18c Replicate Polymorphic Table Function Example
This example creates a Polymorphic Table Function (PTF) that replicates each input row by the replic...
18c ARPLS
2
5
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
Polymorphic Table Functions (PTFs) Can Add Columns
PTFs can add column to the output.
Polymrphic Table Functions PTF
1
4
6 years ago
Darryl Hurley
Script
Polymorphic Table Function Split Column Variable Column Name Variable Separator
A Polymorphic Table Function to split an arbitrary column of a table using an arbitrary separator
Polymorphic Table Function Split Arbitrary Column Arbitrary Separator
1
4
6 years ago
Patch72
Script
KSCOPE 2019 PTF 9
Tracing table polymorphic
KSCOPE Polymorphic PTF
0
4
5.5 years ago
Darryl Hurley
Script
KSCOPE 2019 PTF 8
Introduce table polymorphism
KSCOPE Polymorphic PTF
0
4
5.5 years ago
Darryl Hurley
Script
Polymorphic Table Function Split Column Variable Column Name
A Polymorphic Table Function to split an arbitrary column of a table using ; as a separator
Polymorphic Table Function Split Arbitrary Column
1
3
6 years ago
Patch72
Script
KSCOPE 2019 PTF 4
Add columns and replicate rows
KSCOPE Polymorphic PTF
0
3
5.5 years ago
Darryl Hurley
Script
KSCOPE 2019 PTF 2
Row replication
KSCOPE Polymorphic PTF
0
3
5.5 years ago
Darryl Hurley
Script
18c Split Polymorphic Table Function Example
The split Polymorphic Table Function (PTF) example splits each row of the input table into specified...
18c ARPLS
1
3
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
18c Rand_col Polymorphic Table Function Example
The rand_col PTF appends specified number of random-valued columns to the output.
18c ARPLS
1
3
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
18c DBMS_TF Method Name Overrides
This example shows how to change the default method name of the noop_p polymorphic table function (...
18c ARPLS
1
3
6.8 years ago
Sarah Hirschfeld (Oracle)
Script
KSCOPE 2019 PTF 5.5
Details of ROW_SET_T
KSCOPE Polymorphic PTF
1
2
5.5 years ago
Darryl Hurley
row(s) 1 - 32 of 32