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 - 7
SQL Analytics - 54
SQL General - 504
Oracle Text - 10
Data Models - 11
PL/SQL General - 484
Partitioning - 35
Compression - 1
SQL Types - 6
Oracle 12c - 12
Performance and Tuning - 21
Geospatial - 2
NLS - 8
Data Mining/Machine Learning - 1
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
Tutorial
Introduction to SQL
This tutorial provides an introduction to the Structured Query Language (SQL), learn how to create t...
create table, create, select, insert, update, delete, drop, drop table, recycle bin, purge
1,302
313,537
9.2 years ago
Mike Hichwa (Oracle)
Script
EMP and DEPT
Example EMP and DEPT tables. Classic Oracle tables with 4 departments and 14 employees. Includes a...
EMP, DEPT, JOIN, referential integrity
1,280
290,670
9.2 years ago
Mike Hichwa (Oracle)
Script
HR Objects and Data For Live SQL
This script will create the HR Sample Schema objects and data in your local schema. If you want jus...
SQL, HR Schema, Employees Table, Departments Table
1,036
195,821
6.4 years ago
Oracle
Tutorial
PL/SQL Anonymous Blocks
Define blocks of procedural code using PL/SQL.
240
45,778
9.2 years ago
Mike Hichwa (Oracle)
Tutorial
Creating Tables: Databases for Developers
An introduction to creating tables and the types of these available in Oracle Database.
create table
211
40,045
7.3 years ago
Chris Saxon (Oracle)
Tutorial
Analytic Functions: Databases for Developers
An introduction to analytic functions.
analytics
508
38,052
6.6 years ago
Chris Saxon (Oracle)
Tutorial
Subqueries: Databases for Developers
An introduction to using subqueries in Oracle Database
with clause, in, exists
260
28,114
6.6 years ago
Chris Saxon (Oracle)
Tutorial
Joining Tables: Databases for Developers
An introduction to the join types available in Oracle Database.
join, inner join, outer join, cross join
200
14,585
6.4 years ago
Chris Saxon (Oracle)
Tutorial
Creating Analytic Views - Deep Dive
In this tutorial you will learn how to create an analytic view using data in the AV sample schema. ...
analytic view
132
14,167
7.9 years ago
William Endress (Oracle)
Tutorial
SQL/JSON Features in Oracle Database
Many new features have been added to support JSON development in recent releases. This Tutorial i...
JSON appdev
67
11,278
7.9 years ago
Roger Ford (Oracle)
Script
Baseball Teams and Players
Creates two tables: PLAYERS and TEAMS Teams are World Series teams from 2014: The Kansas City Roy...
123
9,994
9.2 years ago
Oracle
Tutorial
Introduction to Sequences
Learn how to create database sequences and how they can be referenced from triggers and within PL/SQ...
create sequence
72
9,751
9.2 years ago
Mike Hichwa (Oracle)
Tutorial
Updating table data
This tutorial demonstrates different variations of the UPDATE statement. It includes examples of bas...
70
9,624
9.2 years ago
Oracle
Script
Hello World
Simple example showing how to write text to the console.
DBMS_OUTPUT, pl/sql
99
7,369
9.2 years ago
Mike Hichwa (Oracle)
Tutorial
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...
table function
84
6,871
6.5 years ago
Steven Feuerstein
Tutorial
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.
pivot, unpivot
88
6,779
6.6 years ago
Chris Saxon (Oracle)
Tutorial
Querying Null-valued Rows: Databases for Developers
An introduction to handling null, including three-valued logic and null related functions. Click "Ex...
nulls
69
6,439
6.7 years ago
Chris Saxon (Oracle)
Script
Car Database
Database to perform Advanced DML, PL/SQL, Triggers, Procedure and Functions
91
5,964
7.1 years ago
Karan
Tutorial
Aggregating Rows: Databases for Developers
An introduction to how to summarise data using aggregate functions and group by.
group by, rollup, cube, count, sum
99
5,314
6.4 years ago
Chris Saxon (Oracle)
Tutorial
Hierarchical Queries: Databases for Developers
An introduction to using connect by and recursive with to traverse trees.
connect by, recursive with
91
5,292
6.5 years ago
Chris Saxon (Oracle)
Script
SQL Joins
SQL Join query examples, used to select rows from multiple tables using a join key.
SELF JOIN, OUTER JOIN, LEFT OUTER JOIN, RIGHT OUTER JOIN
191
5,072
9.2 years ago
Mike Hichwa (Oracle)
Tutorial
Introduction to MATCH_RECOGNIZE
This is a simple example that introduces the main keywords used in MATCH_RECOGNIZE. During this tuto...
SQL, PATTERN MATCHING
54
4,561
7.9 years ago
Keith Laker (Oracle)
Tutorial
Columns and Data Types: Databases for Developers
An introduction to the various data types available in Oracle Database.
create table, alter table
67
4,486
7.3 years ago
Chris Saxon (Oracle)
Tutorial
Sorting and Limiting Rows: Databases for Developers
An introduction to sorting data with order by and restricting rows to the top N.
order by, fetch first
65
4,230
6.6 years ago
Chris Saxon (Oracle)
Tutorial
Union, Minus, and Intersect: Databases for Developers
An introduction to the set operators, union, minus, and intersect
union, minus, intersect
87
4,088
6.6 years ago
Chris Saxon (Oracle)
Script
Simple Explain Plan
This script explains the plan for a query of the sh.sales and sh.products tables. Both statements m...
execution plan
69
3,774
9.2 years ago
Oracle
Script
Orders and Items Schema
Sample products, orders, and items schema with sample data.
Order Items, schema, data model, orders, items, customers, plsql
60
3,573
9.2 years ago
Mike Hichwa (Oracle)
Tutorial
Enhanced Partitioning techniques in Oracle Database [Tutorial]
Tutorial introducing somewhat more enhanced Partitioning functionality in Oracle Database.
database, partitioning, performance, manageability, Oracle Database
41
3,467
7.9 years ago
Hermann Baer (Oracle)
Tutorial
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...
bulk,forall,performance
78
3,320
5.6 years ago
Steven Feuerstein
Tutorial
Querying and Filtering Rows: Databases for Developers
An introduction to returning data from tables with select and filtering the results using where. ...
select, where
66
3,223
7.3 years ago
Chris Saxon (Oracle)
Tutorial
Adding and Saving Rows: Databases for Developers
An introduction to adding rows to tables with insert. And saving or undoing these changes with commi...
insert, insert all, commit, rollback, savepoint
33
2,959
6.3 years ago
Chris Saxon (Oracle)
Tutorial
Merge: Databases for Developers
An introduction to how to use merge to do insert-or-update logic.
merge, upsert
47
2,777
6.5 years ago
Chris Saxon (Oracle)
Tutorial
Table Design: Databases for Developers
An introduction to designing database tables.
31
2,403
6.3 years ago
Chris Saxon (Oracle)
Script
Analytics - Ranking rows across an entire table
SQL from the KISS (Keep It Simply SQL) Analytic video series by Developer Advocate Connor McDonald. ...
ranking, kiss
32
2,266
9.1 years ago
Connor Mcdonald (Oracle)
Tutorial
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...
pattern, sql
22
2,170
7.2 years ago
Keith Laker (Oracle)
Tutorial
Querying Analytic Views - Deep Dive
This tutorial provides an introduction to querying hierarchies and analytic views. This is a good s...
analytic views, hierarchy, hierarchies
36
2,095
7.9 years ago
William Endress (Oracle)
Tutorial
Creating Time Series Calculations in Analytic Views
This tutorial provides examples for creating time series calculations such as prior periods, year ag...
analytic view, time series, LEAD, LAG, SHARE_OF
24
2,064
7.9 years ago
William Endress (Oracle)
Script
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...
pivot unpivot
89
1,883
8.3 years ago
Chris Saxon (Oracle)
Tutorial
Update & Transactions: Databases for Developers
An introduction to how to change row values with update. Also an overview of how to manage transacti...
update, deadlock, select for update
29
1,788
6.3 years ago
Chris Saxon (Oracle)
Tutorial
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...
analytic view, SH, sales history
11
1,697
7.9 years ago
William Endress (Oracle)
Tutorial
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...
pipelined table function
29
1,695
6.5 years ago
Steven Feuerstein
Script
World Population Queries
Aggregation and various queries on shared world population schema data.
AGGREGATION, TOP-N, TOP-10, LEAD, RANK
66
1,689
9.2 years ago
Mike Hichwa (Oracle)
Tutorial
Removing Rows: Databases for Developers
An introduction to how to remove rows from a table using delete and truncate.
delete, truncate
25
1,627
6.3 years ago
Chris Saxon (Oracle)
Tutorial
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...
table function
32
1,593
6.5 years ago
Steven Feuerstein
Script
Contacts Schema
Simple schema to use to practice SQL
37
1,397
9.2 years ago
Mike Hichwa (Oracle)
Tutorial
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...
SQL
12
1,389
7.9 years ago
Keith Laker (Oracle)
Script
Different Types of Cursors in PL/SQL
An exploration into the different ways you can define and use cursors (pointers to SQL result sets) ...
cursor
96
1,348
8.6 years ago
Steven Feuerstein
Tutorial
Real World Problem Solving with SQL
Examples of how to use SQL to solve real problems, as discussed in the database@home event. https...
match_recognize, sum, analytic functions
39
1,334
4.6 years ago
Chris Saxon (Oracle)
Script
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...
match_recognize, SQL Macro
39
1,300
4.2 years ago
Chris Saxon (Oracle)
Tutorial
HOL Analytic Functions
Hands-On-Lab for ODTUG Kscope. The modules give examples of analytic functions in increasing comp...
19
1,265
7.8 years ago
Kim Berg Hansen
Tutorial
Using the Analytic View Materialized Aggregate Cache
This tutorial shows how to use materialized views to accelerate queries that select from analytic vi...
analytic view, materialized view, aggregate, cache
14
1,162
7.9 years ago
William Endress (Oracle)
Script
19C LISTAGG DISTINCT
The LISTAGG aggregate function now supports duplicate elimination by using the new DISTINCT keyword....
19c LISTAGG
51
1,118
5.9 years ago
Oracle
Tutorial
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...
PATTERN MATCHING, MATCH_RECOGNIZE,
21
1,062
8.2 years ago
Keith Laker (Oracle)
Script
Analytics - Ranking part 3
SQL from the KISS (Keep It Simply SQL) Analytic video series by Developer Advocate Connor McDonald. ...
13
1,035
9 years ago
Connor Mcdonald (Oracle)
Tutorial
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...
13
1,032
6.1 years ago
Oracle
Tutorial
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...
SQL, LISTAGG, 12.2
11
952
7.9 years ago
Keith Laker (Oracle)
Tutorial
Approximate Query Processing - Getting Started
Approximate Query Processing provides approximate result capabilities in SQL. The motivation behind ...
sql analytics,approximate query processing
8
952
7.9 years ago
Nigel Bayliss (Oracle)
Tutorial
Adding Multiple Language Support to Analytic Views
This tutorial provides examples of adding multiple language support to analytic views.
analytic views, nls
6
950
7.8 years ago
William Endress (Oracle)
Tutorial
Read Phenomena & Isolation Levels: Databases for Developers
An introduction to the read consistency model in Oracle Database
read committed, serializable, set transaction, read only
10
949
6.4 years ago
Chris Saxon (Oracle)
Script
Top N Query
Database 11g top N query syntax, Show top N rows of a query result
TOP-N, top
35
918
9.2 years ago
Mike Hichwa (Oracle)
row(s) 1 - 60 of 1156
Next