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 - 6
SQL Analytics - 48
SQL General - 475
Oracle Text - 10
Data Models - 11
PL/SQL General - 474
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
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
608
163,034
9.3 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
695
118,903
9.4 years ago
Mike Hichwa (Oracle)
Script
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...
SQL, HR Schema, Employees Table, Departments Table
398
61,587
6.6 years ago
Oracle
Tutorial
PL/SQL Anonymous Blocks
Define blocks of procedural of code using PL/SQL.
109
25,693
9.3 years ago
Mike Hichwa (Oracle)
Tutorial
Subqueries: Databases for Developers
An introduction to using subqueries in Oracle Database
with clause, in, exists
139
18,570
6.8 years ago
Chris Saxon (Oracle)
Tutorial
Creating Tables: Databases for Developers
An introduction to creating tables and the types of these available in Oracle Database.
create table
93
17,346
7.5 years ago
Chris Saxon (Oracle)
Tutorial
Analytic Functions: Databases for Developers
An introduction to analytic functions.
analytics
222
15,872
6.8 years ago
Chris Saxon (Oracle)
Tutorial
Creating Analytic Views - Getting Started
In this tutorial you will learn how to create an analytic view using data in the AV sample schema. ...
analytic view
77
9,920
8.1 years ago
William Endress (Oracle)
Tutorial
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...
40
8,195
8.1 years ago
Roger Ford (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
35
6,300
9.3 years ago
Mike Hichwa (Oracle)
Script
Hello World
Simple example showing how to write text to the console.
DBMS_OUTPUT, pl/sql
76
6,200
9.4 years ago
Mike Hichwa (Oracle)
Tutorial
Updating table data
This tutorial demonstrates different variations of the UPDATE statement. It includes examples of bas...
38
5,782
9.3 years ago
Oracle
Tutorial
Joining Tables: Databases for Developers
An introduction to the join types available in Oracle Database.
join, inner join, outer join, cross join
77
5,453
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
34
4,967
6.9 years ago
Chris Saxon (Oracle)
Script
Baseball Teams and Players
Creates two tables: PLAYERS and TEAMS Teams are World Series teams from 2014: The Kansas City Roy...
74
4,950
9.4 years ago
Oracle
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
52
4,722
6.8 years ago
Chris Saxon (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
44
4,182
6.7 years ago
Steven Feuerstein (Oracle)
Tutorial
Hierarchical Queries: Databases for Developers
An introduction to using connect by and recursive with to traverse trees.
connect by, recursive with
52
3,729
6.7 years ago
Chris Saxon (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
31
3,614
8.1 years ago
Keith Laker (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
131
3,259
9.4 years ago
Mike Hichwa (Oracle)
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
47
2,863
6.5 years ago
Chris Saxon (Oracle)
Tutorial
Columns and Data Types: Databases for Developers
An introduction to the various data types available in Oracle Database.
create table, alter table
28
2,761
7.5 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
35
2,694
6.8 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.
execution plan
44
2,600
9.4 years ago
Oracle
Tutorial
Partitioning in Oracle Database 12c Release 2 [Tutorial]
Tutorial introducing new and enhanced Partitioning functionality in Oracle Database 12c Release 2.
database, partitioning, performance, manageability, 12.2, Oracle Database 12c Release 2, Oracle Database 12.2
25
2,564
8.1 years ago
Hermann Baer (Oracle)
Tutorial
Union, Minus, and Intersect: Databases for Developers
An introduction to the set operators, union, minus, and intersect
union, minus, intersect
41
2,484
6.7 years ago
Chris Saxon (Oracle)
Script
Car Database
Database to perform Advanced DML, PL/SQL, Triggers, Procedure and Functions
40
2,283
7.3 years ago
Karan
Script
Orders and Items Schema
Sample products, orders, and items schema with sample data.
Order Items, schema, data model, orders, items, customers, plsql
41
2,138
9.4 years ago
Mike Hichwa (Oracle)
Tutorial
Merge: Databases for Developers
An introduction to how to use merge to do insert-or-update logic.
merge, upsert
27
1,797
6.7 years ago
Chris Saxon (Oracle)
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
35
1,715
7.4 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
16
1,707
6.5 years ago
Chris Saxon (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
12
1,691
7.4 years ago
Keith Laker (Oracle)
Tutorial
Table Design: Databases for Developers
An introduction to designing database tables.
16
1,604
6.5 years ago
Chris Saxon (Oracle)
Tutorial
Querying Analytic Views - Getting Started
This tutorial provides an introduction to querying hierarchies and analytic views. This is a good s...
analytic views, hierarchy, hierarchies
19
1,586
8.1 years ago
William Endress (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
43
1,529
5.8 years ago
Steven Feuerstein (Oracle)
Script
World Population Queries
Aggregation and various queries on shared world population schema data.
AGGREGATION, TOP-N, TOP-10, LEAD, RANK
57
1,516
9.4 years ago
Mike Hichwa (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
14
1,428
8.1 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
63
1,382
8.4 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
19
1,270
9.2 years ago
Connor Mcdonald (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
8
1,155
8.1 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
16
1,149
6.7 years ago
Steven Feuerstein (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
17
1,061
6.5 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
18
1,059
6.7 years ago
Steven Feuerstein (Oracle)
Script
Contacts Schema
Simple schema to use to practice SQL
26
1,051
9.4 years ago
Mike Hichwa (Oracle)
Tutorial
HOL Analytic Functions
Hands-On-Lab for ODTUG Kscope. The modules give examples of analytic functions in increasing comp...
15
965
8 years ago
Kim Berg Hansen
Tutorial
Removing Rows: Databases for Developers
An introduction to how to remove rows from a table using delete and truncate.
delete, truncate
17
929
6.5 years ago
Chris Saxon (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
6
896
8.1 years ago
Keith Laker (Oracle)
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
9
888
8.1 years ago
William Endress (Oracle)
Script
Top N Query
Database 11g top N query syntax, Show top N rows of a query result
TOP-N, top
24
737
9.4 years ago
Mike Hichwa (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
62
715
8.8 years ago
Steven Feuerstein (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,
17
697
8.3 years ago
Keith Laker (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
5
691
8.1 years ago
Keith Laker (Oracle)
Script
IS JSON
Using the is JSON where clause predicate
JSON, IS JSON, 12c
11
684
9.3 years ago
Mike Hichwa (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
7
681
6.6 years ago
Chris Saxon (Oracle)
Tutorial
Approximate Query Processing - Getting Started
Approximate Query Processing provides approximate result capabilities in SQL. The motivation behind ...
sql analytics,approximate query processing
5
656
8.1 years ago
Nigel Bayliss (Oracle)
Script
XML with EMP and DEPT
Basic XML casting example on the standard EMP and DEPT tables
XML, XMLForest
32
642
9.4 years ago
Mike Hichwa (Oracle)
Tutorial
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...
PATTERN MATCHING, MATCH_RECOGNIZE,
10
640
7.9 years ago
Keith Laker (Oracle)
Tutorial
Adding Multiple Language Support to Analytic Views
This tutorial provides examples of adding multiple language support to analytic views.
analytic views, nls
4
639
8 years ago
William Endress (Oracle)
Tutorial
MATCH_RECOGNIZE - Log file sessionization analysis
How to use new 12c SQL pattern matching match_recognize feature for sessionization analysis on web l...
pattern matching, sessionization, MATCH_RECOGNIZE
12
634
8.8 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. ...
6
612
9.2 years ago
Connor Mcdonald (Oracle)
row(s) 1 - 60 of 1108
Next