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 - 49
SQL General - 490
Oracle Text - 10
Data Models - 11
PL/SQL General - 480
Partitioning - 35
Compression - 1
SQL Types - 6
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
824
206,832
6.8 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
897
164,327
6.9 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
554
92,379
4.1 years ago
Oracle
PL/SQL Anonymous Blocks
Define blocks of procedural of code using PL/SQL.
Tutorial
145
31,563
6.8 years ago
Mike Hichwa (Oracle)
Creating Tables: Databases for Developers
An introduction to creating tables and the types of these available in Oracle Database.
Tutorial
create table
120
23,764
5 years ago
Chris Saxon (Oracle)
Analytic Functions: Databases for Developers
An introduction to analytic functions.
Tutorial
analytics
327
23,470
4.3 years ago
Chris Saxon (Oracle)
Subqueries: Databases for Developers
An introduction to using subqueries in Oracle Database
Tutorial
with clause, in, exists
176
22,265
4.3 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
97
11,459
5.6 years ago
William Endress (Oracle)
SQL/JSON Features in Database 12.2 and 19c
Many new features have been added to support JSON development in 12.2 and 19c. This Tutorial intr...
Tutorial
JSON appdev
48
9,149
5.6 years ago
Roger Ford (Oracle)
Joining Tables: Databases for Developers
An introduction to the join types available in Oracle Database.
Tutorial
join, inner join, outer join, cross join
110
8,090
4.1 years ago
Chris Saxon (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
42
7,350
6.8 years ago
Mike Hichwa (Oracle)
Updating table data
This tutorial demonstrates different variations of the UPDATE statement. It includes examples of bas...
Tutorial
46
7,079
6.8 years ago
Oracle
Hello World
Simple example showing how to write text to the console.
Script
DBMS_OUTPUT, pl/sql
88
6,646
6.9 years ago
Mike Hichwa (Oracle)
Baseball Teams and Players
Creates two tables: PLAYERS and TEAMS Teams are World Series teams from 2014: The Kansas City Roy...
Script
91
5,557
6.9 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
46
5,466
4.4 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
64
5,332
4.3 years ago
Chris Saxon (Oracle)
Hierarchical Queries: Databases for Developers
An introduction to using connect by and recursive with to traverse trees.
Tutorial
connect by, recursive with
67
4,227
4.2 years ago
Chris Saxon (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
42
3,947
5.6 years ago
Keith Laker (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
155
3,927
6.9 years ago
Mike Hichwa (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
67
3,650
4 years ago
Chris Saxon (Oracle)
Columns and Data Types: Databases for Developers
An introduction to the various data types available in Oracle Database.
Tutorial
create table, alter table
40
3,332
5 years ago
Chris Saxon (Oracle)
Car Database
Database to perform Advanced DML, PL/SQL, Triggers, Procedure and Functions
Script
59
3,312
4.8 years ago
Karan
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
44
3,124
4.3 years ago
Chris Saxon (Oracle)
Union, Minus, and Intersect: Databases for Developers
An introduction to the set operators, union, minus, and intersect
Tutorial
union, minus, intersect
58
2,993
4.2 years ago
Chris Saxon (Oracle)
Simple Explain Plan
This script explains the plan for a query of the sh.sales and sh.products tables.
Script
execution plan
51
2,992
6.9 years ago
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
35
2,893
5.6 years ago
Hermann Baer (Oracle)
Orders and Items Schema
Sample products, orders, and items schema with sample data.
Script
Order Items, schema, data model, orders, items, customers, plsql
52
2,469
6.9 years ago
Mike Hichwa (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
43
2,318
4.9 years ago
Chris Saxon (Oracle)
Merge: Databases for Developers
An introduction to how to use merge to do insert-or-update logic.
Tutorial
merge, upsert
35
2,161
4.2 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
22
2,118
4 years ago
Chris Saxon (Oracle)
Table Design: Databases for Developers
An introduction to designing database tables.
Tutorial
22
1,919
4 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
16
1,855
4.9 years ago
Keith Laker (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
24
1,762
5.6 years ago
William Endress (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
20
1,659
5.6 years ago
William Endress (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
28
1,640
6.7 years ago
Connor Mcdonald (Oracle)
World Population Queries
Aggregation and various queries on shared world population schema data.
Script
AGGREGATION, TOP-N, TOP-10, LEAD, RANK
62
1,587
6.9 years ago
Mike Hichwa (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
72
1,519
5.9 years ago
Chris Saxon (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
9
1,329
5.6 years ago
William Endress (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
21
1,321
4 years ago
Chris Saxon (Oracle)
Removing Rows: Databases for Developers
An introduction to how to remove rows from a table using delete and truncate.
Tutorial
delete, truncate
20
1,155
4 years ago
Chris Saxon (Oracle)
Contacts Schema
Simple schema to use to practice SQL
Script
29
1,153
6.9 years ago
Mike Hichwa (Oracle)
HOL Analytic Functions
Hands-On-Lab for ODTUG Kscope. The modules give examples of analytic functions in increasing comp...
Tutorial
17
1,091
5.5 years ago
Kim Berg Hansen
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
8
1,049
5.6 years ago
Keith Laker (Oracle)
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
10
991
5.6 years ago
William Endress (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
74
917
6.3 years ago
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,
20
828
5.8 years ago
Keith Laker (Oracle)
Analytics - Ranking part 3
SQL from the KISS (Keep It Simply SQL) Analytic video series by Developer Advocate Connor McDonald. ...
Script
9
800
6.7 years ago
Connor Mcdonald (Oracle)
Top N Query
Database 11g top N query syntax, Show top N rows of a query result
Script
TOP-N, top
29
797
6.9 years ago
Mike Hichwa (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
9
778
5.6 years ago
Keith Laker (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
9
762
4.1 years ago
Chris Saxon (Oracle)
19C LISTAGG DISTINCT
The LISTAGG aggregate function now supports duplicate elimination by using the new DISTINCT keyword....
Script
19c LISTAGG
40
754
3.6 years ago
Oracle
Approximate Query Processing - Getting Started
Approximate Query Processing provides approximate result capabilities in SQL. The motivation behind ...
Tutorial
sql analytics,approximate query processing
6
751
5.6 years ago
Nigel Bayliss (Oracle)
XML with EMP and DEPT
Basic XML casting example on the standard EMP and DEPT tables
Script
XML, XMLForest
34
747
6.9 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,
10
746
5.4 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
12
745
6.3 years ago
Keith Laker (Oracle)
Adding Multiple Language Support to Analytic Views
This tutorial provides examples of adding multiple language support to analytic views.
Tutorial
analytic views, nls
4
744
5.5 years ago
William Endress (Oracle)
IS JSON
Using the is JSON where clause predicate
Script
JSON, IS JSON, 12c
12
718
6.8 years ago
Mike Hichwa (Oracle)
How to Find Gaps in Dates with SQL Pattern Matching
This shows you how to find gaps in rows containing start/end dates using match_recognize. You can ma...
Script
match_recognize, SQL Macro
21
683
1.9 years ago
Chris Saxon (Oracle)
Oracle XML DB : Storing and Processing XML Documents
Oracle XML DB is a set of Oracle Database technologies related to high-performance handling of XML d...
Tutorial
9
682
3.8 years ago
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
22
595
6.6 years ago
Oracle
row(s) 1 - 60 of 1127
Next