SQL Specification
Data Types
- Introduction
- Numeric types
- Character types
- Date/Time types
- Boolean types
- Type Conversion
- ROW IDs
SQL Syntax Conventions
Data Definition Language (DDL) Commands
Transaction Control Language Commands
Hints
- Overview
- General notes
- Join hints
- Hints for parallelism of distributed operations
- Other hints
SQL Functions and Operators
- SQL Functions and Operators
- Comparison Functions and Operators
- Mathematical Functions and Operators
- String Functions and Operators
- Date/Time Functions and Operators
- Conditional Expressions
- Convert Functions
- Aggregate Functions
- Subquery Expressions
Managing Users
System Monitoring
- Using System Monitoring Views
- SHOW SYSTEM VIEWS
- Database Catalog Data
- System Catalog Data
- Dynamic System Data
- System Management
Hints for parallelism of distributed operations
Hint - Distributed Sorting
Synopsis
DISTRIBUTE ORDER BY (number)
Example
SELECT /*++ DISTRIBUTE ORDER BY (2) */ s.name, o.id
FROM staff s JOIN org o
ON s.deptno = o.deptno
WHERE o.division = 'EASTERN'
ORDER BY s.name;
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.