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
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
: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
Action | Windows/Linux | Mac |
---|---|---|
Execute Query | Ctrl+Enter | Cmd+Enter |
Format SQL | Shift+Alt+F | Shift+Option+F |
Comment Line | Ctrl+/ | Cmd+/ |
Find | Ctrl+F | Cmd+F |
Replace | Ctrl+H | Cmd+H |
Save Query | Ctrl+S | Cmd+S |
Common Issues and Solutions
Query Too Slow
- Add
ROWNUM
limit - Use specific columns instead of
*
- Add WHERE conditions to filter data
- Check indexes on filtered columns
Out of Memory
- Reduce row limit in settings
- Select fewer columns
- Use scheduled reports for large datasets
Syntax Errors
- Check for missing commas
- Verify table/column names
- Ensure quotes match
- Check parentheses balance