Skip to main content

Query Editor Overview

The Koala SQL Editor is powered by Monaco Editor (the same editor used in VS Code) providing a professional SQL development experience.

Basic Query Structure

Simple SELECT Query

Oracle Fusion Example

Editor Features

Syntax Highlighting

The editor provides full SQL syntax highlighting:
  • Keywords: Blue (SELECT, FROM, WHERE)
  • Strings: Red (‘value’)
  • Numbers: Green (123)
  • Comments: Gray (— comment)

IntelliSense (Paid Feature)

Auto-completion for:
  • SQL keywords
  • Table names
  • Column names
  • Functions
Trigger with Ctrl+Space or start typing.

Code Formatting

Format your SQL for readability:
  • Automatic indentation
  • Keyword capitalization
  • Consistent spacing

Query Best Practices

1. Always Use Row Limits

2. Use Specific Columns

3. Add Meaningful Aliases

Common Oracle Fusion Tables

Human Resources

Financials

Supply Chain

Advanced Query Techniques

Using WITH Clauses (CTEs)

Analytical Functions

Date Operations

Query Optimization Tips

1. Use Indexes

2. Avoid Functions on Indexed Columns

3. Use EXISTS Instead of IN

Working with Bind Variables

Declaring Variables

When executed, you’ll be prompted to enter values for:
  • :supplier_name
  • :start_date
  • :max_rows
See Bind Variables Guide for detailed usage

Multi-line Queries

Formatting Long Queries

Query Templates

Data Audit Query

Count and Group Query

Keyboard Shortcuts

Common Issues and Solutions

Query Too Slow

  1. Add ROWNUM limit
  2. Use specific columns instead of *
  3. Add WHERE conditions to filter data
  4. Check indexes on filtered columns

Out of Memory

  1. Reduce row limit in settings
  2. Select fewer columns
  3. Use scheduled reports for large datasets

Syntax Errors

  1. Check for missing commas
  2. Verify table/column names
  3. Ensure quotes match
  4. Check parentheses balance

Next Steps

Executing Queries

Learn query execution features

Bind Variables

Use dynamic query parameters

Query Results

Work with query results

Performance Tips

Optimize query performance