Skip to Main Content
Oracle
Live SQL
Help
Sign In
Home
SQL Worksheet
My Session
Previous Sessions
Utilization
NLS
Schema
Quick SQL
My Models
My Scripts
My Tutorials
Code Library
Code Library
Breadcrumb
Search
Area
All
Oracle 19c - 6
SQL Analytics - 48
SQL General - 470
Oracle Text - 10
Data Models - 11
PL/SQL General - 465
Partitioning - 34
Compression - 1
SQL Types - 5
Oracle 12c - 12
Performance and Tuning - 20
Geospatial - 2
NLS - 8
Data Mining/Machine Learning - 1
Category
All
Types
All
Tutorials
Scripts
Sort By
Date Added
Executions
Name
Likes
Results Per Page
60
120
180
240
300
360
420
480
540
600
Reset Search
Introduction to SQL
This tutorial provides an introduction to the Structured Query Language (SQL), learn how to create t...
Tutorial
create table, create, select, insert, update, delete, drop, drop table, recycle bin, purge
486
143,524
5.3 years ago
Mike Hichwa (Oracle)
EMP and DEPT
Example EMP and DEPT tables. Classic Oracle tables with 4 departments and 14 employees. Includes a...
Script
EMP, DEPT, JOIN, referential integrity
599
92,520
5.3 years ago
Mike Hichwa (Oracle)
HR Objects and Data For Live SQL
This script will create a the HR Sample Schema objects and data in your local schema. If you want j...
Script
SQL, HR Schema, Employees Table, Departments Table
290
48,768
2.6 years ago
Oracle
PL/SQL Anonymous Blocks
Define blocks of procedural of code using PL/SQL.
Tutorial
84
22,897
5.3 years ago
Mike Hichwa (Oracle)
Subqueries: Databases for Developers
An introduction to using subqueries in Oracle Database
Tutorial
with clause, in, exists
120
16,667
2.7 years ago
Chris Saxon (Oracle)
Creating Tables: Databases for Developers
An introduction to creating tables and the types of these available in Oracle Database.
Tutorial
create table
75
14,538
3.4 years ago
Chris Saxon (Oracle)
Analytic Functions: Databases for Developers
An introduction to analytic functions.
Tutorial
analytics
159
11,592
2.7 years ago
Chris Saxon (Oracle)
Creating Analytic Views - Getting Started
In this tutorial you will learn how to create an analytic view using data in the AV sample schema. ...
Tutorial
analytic view
67
9,373
4.1 years ago
William Endress (Oracle)
SQL/JSON Features in Database 12.2
This Tutorial introduces the new JSON-related extensions to SQL and PL/SQL that have been added to O...
Tutorial
36
7,721
4.1 years ago
Roger Ford (Oracle)
Hello World
Simple example showing how to write text to the console.
Script
DBMS_OUTPUT, pl/sql
70
5,913
5.3 years ago
Mike Hichwa (Oracle)
Introduction to Sequences
Learn how to create database sequences and how they can be referenced from triggers and within PL/SQ...
Tutorial
create sequence
26
5,749
5.3 years ago
Mike Hichwa (Oracle)
Updating table data
This tutorial demonstrates different variations of the UPDATE statement. It includes examples of bas...
Tutorial
32
5,107
5.3 years ago
Oracle
Querying Null-valued Rows: Databases for Developers
An introduction to handling null, including three-valued logic and null related functions. Click "Ex...
Tutorial
nulls
31
4,709
2.8 years ago
Chris Saxon (Oracle)
Baseball Teams and Players
Creates two tables: PLAYERS and TEAMS Teams are World Series teams from 2014: The Kansas City Roy...
Script
63
4,703
5.3 years ago
Oracle
Joining Tables: Databases for Developers
An introduction to the join types available in Oracle Database.
Tutorial
join, inner join, outer join, cross join
63
4,432
2.5 years ago
Chris Saxon (Oracle)
Converting Rows to Columns and Back Again: Databases for Developers
An introduction to how to use pivot & unpivot to convert rows to columns and back.
Tutorial
pivot, unpivot
45
4,332
2.7 years ago
Chris Saxon (Oracle)
Get Started with Table Functions 1: Overview
This tutorial is part of the Oracle Dev Gym class "Get Started with Table Functions". This module of...
Tutorial
table function
41
3,716
2.6 years ago
Steven Feuerstein (Oracle)
Introduction to MATCH_RECOGNIZE
This is a simple example that introduces the main keywords used in MATCH_RECOGNIZE. During this tuto...
Tutorial
SQL, PATTERN MATCHING
28
3,452
4 years ago
Keith Laker (Oracle)
Hierarchical Queries: Databases for Developers
An introduction to using connect by and recursive with to traverse trees.
Tutorial
connect by, recursive with
44
3,403
2.7 years ago
Chris Saxon (Oracle)
SQL Joins
SQL Join query examples, used to select rows from multiple tables using a join key.
Script
SELF JOIN, OUTER JOIN, LEFT OUTER JOIN, RIGHT OUTER JOIN
125
3,007
5.3 years ago
Mike Hichwa (Oracle)
Columns and Data Types: Databases for Developers
An introduction to the various data types available in Oracle Database.
Tutorial
create table, alter table
22
2,492
3.4 years ago
Chris Saxon (Oracle)
Sorting and Limiting Rows: Databases for Developers
An introduction to sorting data with order by and restricting rows to the top N.
Tutorial
order by, fetch first
32
2,480
2.7 years ago
Chris Saxon (Oracle)
Aggregating Rows: Databases for Developers
An introduction to how to summarise data using aggregate functions and group by.
Tutorial
group by, rollup, cube, count, sum
39
2,479
2.5 years ago
Chris Saxon (Oracle)
Partitioning in Oracle Database 12c Release 2 [Tutorial]
Tutorial introducing new and enhanced Partitioning functionality in Oracle Database 12c Release 2.
Tutorial
database, partitioning, performance, manageability, 12.2, Oracle Database 12c Release 2, Oracle Database 12.2
22
2,390
4.1 years ago
Hermann Baer (Oracle)
Simple Explain Plan
This script explains the plan for a query of the sh.sales and sh.products tables.
Script
execution plan
39
2,293
5.3 years ago
Oracle
Union, Minus, and Intersect: Databases for Developers
An introduction to the set operators, union, minus, and intersect
Tutorial
union, minus, intersect
34
2,155
2.7 years ago
Chris Saxon (Oracle)
Car Database
Database to perform Advanced DML, PL/SQL, Triggers, Procedure and Functions
Script
36
2,137
3.3 years ago
Karan
Orders and Items Schema
Sample products, orders, and items schema with sample data.
Script
Order Items, schema, data model, orders, items, customers, plsql
41
2,003
5.3 years ago
Mike Hichwa (Oracle)
Merge: Databases for Developers
An introduction to how to use merge to do insert-or-update logic.
Tutorial
merge, upsert
22
1,622
2.6 years ago
Chris Saxon (Oracle)
JavaOne - Simplified and Fast Fraud Detection using SQL Pattern Matching
This session demonstrates how, using SQL pattern matching techniques, you can speed up searching for...
Tutorial
pattern, sql
12
1,602
3.3 years ago
Keith Laker (Oracle)
Querying and Filtering Rows: Databases for Developers
An introduction to returning data from tables with select and filtering the results using where. ...
Tutorial
select, where
30
1,554
3.4 years ago
Chris Saxon (Oracle)
Adding and Saving Rows: Databases for Developers
An introduction to adding rows to tables with insert. And saving or undoing these changes with commi...
Tutorial
insert, insert all, commit, rollback, savepoint
13
1,522
2.5 years ago
Chris Saxon (Oracle)
Querying Analytic Views - Getting Started
This tutorial provides an introduction to querying hierarchies and analytic views. This is a good s...
Tutorial
analytic views, hierarchy, hierarchies
17
1,480
4.1 years ago
William Endress (Oracle)
World Population Queries
Aggregation and various queries on shared world population schema data.
Script
AGGREGATION, TOP-N, TOP-10, LEAD, RANK
56
1,473
5.3 years ago
Mike Hichwa (Oracle)
Table Design: Databases for Developers
An introduction to designing database tables.
Tutorial
13
1,465
2.5 years ago
Chris Saxon (Oracle)
Creating Time Series Calculations in Analytic Views
This tutorial provides examples for creating time series calculations such as prior periods, year ag...
Tutorial
analytic view, time series, LEAD, LAG, SHARE_OF
10
1,320
4.1 years ago
William Endress (Oracle)
Pivot and unpivot examples using Olympic data
Examples of pivoting and unpivoting data. Uses a subset of the results from the Rio Olympics as a da...
Script
pivot unpivot
58
1,263
4.4 years ago
Chris Saxon (Oracle)
Bulk Processing with PL/SQL
Learn how to make the most of the bulk processing features of PL/SQL: BULK COLLECT and FORALL. Be su...
Tutorial
bulk,forall,performance
36
1,205
1.7 years ago
Steven Feuerstein (Oracle)
Creating an Analytic View for the Sales History (SH) Sample Schema
This tutorial will create an analytic view and supporting objects using data in the Sales History (S...
Tutorial
analytic view, SH, sales history
7
1,077
4.1 years ago
William Endress (Oracle)
Get Started with Table Functions 4: Pipelined Table Functions
This tutorial is part of the Oracle Dev Gym class "Get Started with Table Functions". Pipelined tabl...
Tutorial
pipelined table function
15
1,032
2.6 years ago
Steven Feuerstein (Oracle)
Analytics - Ranking rows across an entire table
SQL from the KISS (Keep It Simply SQL) Analytic video series by Developer Advocate Connor McDonald. ...
Script
ranking, kiss
17
986
5.2 years ago
Connor Mcdonald (Oracle)
Contacts Schema
Simple schema to use to practice SQL
Script
25
977
5.3 years ago
Mike Hichwa (Oracle)
Get Started with Table Functions 2: Returning Multiple Columns
This tutorial is part of the Oracle Dev Gym class "Get Started with Table Functions". This module sh...
Tutorial
table function
16
941
2.6 years ago
Steven Feuerstein (Oracle)
Update & Transactions: Databases for Developers
An introduction to how to change row values with update. Also an overview of how to manage transacti...
Tutorial
update, deadlock, select for update
16
939
2.5 years ago
Chris Saxon (Oracle)
HOL Analytic Functions (Kscope17)
Hands-On-Lab for ODTUG Kscope17 in San Antanio. The modules give examples of analytic functions i...
Tutorial
12
892
3.9 years ago
Kim Berg Hansen
Using the Analytic View Materialized Aggregate Cache
This tutorial shows how to use materialized views to accelerate queries that select from analytic vi...
Tutorial
analytic view, materialized view, aggregate, cache
8
860
4.1 years ago
William Endress (Oracle)
Removing Rows: Databases for Developers
An introduction to how to remove rows from a table using delete and truncate.
Tutorial
delete, truncate
11
840
2.4 years ago
Chris Saxon (Oracle)
New 12.2 Data Validation Features - CAST and VALIDATE_CONVERSION
The enhanced CAST function (along with TO_NUMBER, TO_BINARY_FLOAT, TO_BINARY_DOUBLE, TO_DATE, TO_TI...
Tutorial
SQL
6
820
4.1 years ago
Keith Laker (Oracle)
Top N Query
Database 11g top N query syntax, Show top N rows of a query result
Script
TOP-N, top
23
702
5.3 years ago
Mike Hichwa (Oracle)
IS JSON
Using the is JSON where clause predicate
Script
JSON, IS JSON, 12c
11
677
5.3 years ago
Mike Hichwa (Oracle)
Read Phenomena & Isolation Levels: Databases for Developers
An introduction to the read consistency model in Oracle Database
Tutorial
read committed, serializable, set transaction, read only
6
652
2.6 years ago
Chris Saxon (Oracle)
Managing very long lists in 12.2 with LISTAGG
The tutorial will help explain the new 12.2 syntax for LISTAGG which provides developers with additi...
Tutorial
SQL, LISTAGG, 12.2
4
649
4.1 years ago
Keith Laker (Oracle)
Different Types of Cursors in PL/SQL
An exploration into the different ways you can define and use cursors (pointers to SQL result sets) ...
Script
cursor
59
634
4.7 years ago
Steven Feuerstein (Oracle)
MATCH_RECOGNIZE - importance of PARTITION BY and ORDER BY
The aim of this tutorial is to explain the importance of using PARTITION BY and ORDER BY to ensure t...
Tutorial
PATTERN MATCHING, MATCH_RECOGNIZE,
16
626
4.3 years ago
Keith Laker (Oracle)
Approximate Query Processing - Getting Started
Approximate Query Processing provides approximate result capabilities in SQL. The motivation behind ...
Tutorial
sql analytics,approximate query processing
4
615
4.1 years ago
Nigel Bayliss (Oracle)
Adding Multiple Language Support to Analytic Views
This tutorial provides examples of adding multiple language support to analytic views.
Tutorial
analytic views, nls
3
611
4 years ago
William Endress (Oracle)
XML with EMP and DEPT
Basic XML casting example on the standard EMP and DEPT tables
Script
XML, XMLForest
32
611
5.3 years ago
Mike Hichwa (Oracle)
MATCH_RECOGNIZE - Fraud demo for OracleCODE events
This is a simple demo showing how to use SQL pattern matching for fraud analysis. It is part of a pr...
Tutorial
PATTERN MATCHING, MATCH_RECOGNIZE,
9
607
3.9 years ago
Keith Laker (Oracle)
MATCH_RECOGNIZE - Log file sessionization analysis
How to use new 12c SQL pattern matching match_recognize feature for sessionization analysis on web l...
Tutorial
pattern matching, sessionization, MATCH_RECOGNIZE
9
600
4.7 years ago
Keith Laker (Oracle)
''How did I get here?'' DBMS_UTILITY.FORMAT_CALL_STACK
Use the DBMS_UTILITY.FORMAT_CALL_STACK function to answer the question "How did I get here?". Note t...
Script
call stack
21
566
5 years ago
Steven Feuerstein (Oracle)
row(s) 1 - 60 of 1094
Next