2.2 KiB
2.2 KiB
AI SQL Builder User Guide
What is the AI SQL Builder Module?
The AI SQL Builder module is an intelligent tool that helps users create SQL queries using natural language processing. It allows users to generate complex database queries without needing extensive SQL knowledge.
Getting Started
To access AI SQL Builder:
- Login to the system
- Click on Settings in the main menu
- Select AI SQL Builder from the submenu
Key Features
Primary Functions
- Natural Language Query Generation: Convert plain English to SQL queries
- Query Optimization: Automatically optimize generated queries for better performance
- Query Validation: Validate SQL syntax before execution
- Query History: Save and reuse previously generated queries
Secondary Functions
- Query Templates: Pre-built query templates for common operations
- Export Results: Export query results to various formats
- Query Sharing: Share queries with team members
How to Use
Creating a New Query
- Click "New Query" button
- Enter your question in natural language
- Select the target database/tables
- Click "Generate SQL"
- Review the generated query
- Click "Execute" to run the query
Example Queries
- "Show me all welders who completed their qualification in the last 6 months"
- "Find all NDT tests that failed inspection"
- "List projects with pending RFI responses"
Best Practices
Usage Guidelines
- ✅ Use clear, specific language when describing your query
- ✅ Specify date ranges and conditions clearly
- ✅ Review generated queries before execution
- ✅ Use query templates for common operations
Quality Assurance
- ✅ Always validate queries before running on production data
- ✅ Test queries on sample data first
- ✅ Keep queries simple and readable
Troubleshooting
Common Issues
- Query not generating: Check your natural language description for clarity
- Incorrect results: Review the generated SQL and modify if needed
- Performance issues: Use query optimization features
Getting Help
- Contact the IT department for technical support
- Consult the database administrator for complex queries
- Check the query history for similar examples