icon icon

AI in working with SQL – practical use of LLM models and agents for data analysis

icon

Training process

Training needs analysis

If you have specific requirements regarding the training programme, we will carry out a training needs analysis for you. This will guide us on which aspects of the programme should receive greater emphasis, so that the training programme meets your specific needs.

What will you gain?

icon

Smarter LLM use in analytics - You will learn when LLMs truly speed up data analysis and when they introduce unnecessary risk, so you can use AI deliberately, with better judgment and more reliable outcomes.

icon

Faster SQL work - You will turn business questions into solid SQL faster, refactor existing queries more confidently, and catch edge cases that often distort analytical results or reporting output.

icon

Effective analytics prompts - You will master prompts for data tasks, choose the right input format, and set clear model constraints so the responses you get are more precise, useful, and easier to validate.

icon

Fewer wrong conclusions - You will learn how to spot hallucinations, anomalies, and inconsistent numeric outputs, making it easier to stop flawed insights before they reach a dashboard, deck, or business decision.

icon

Stronger insight delivery - You will use AI to summarize analyses, generate product hypotheses, validate KPIs, and interpret results, so you can prepare outputs that are clearer and more useful for business partners.

icon

Support for A/B testing - You will learn how to use AI in experiment design, hypothesis framing, and statistical interpretation without blindly accepting automated conclusions produced from test results.

icon

AI in your daily workflow - You will see how to connect language models with databases, code, RAG, and day-to-day analyst tasks, helping you shorten ad hoc analysis, documentation, and stakeholder communication.

icon

Safer work with data - You will learn Local-First Analytics, anonymization methods, and hybrid approaches, so you can protect sensitive data better and choose the right model setup for your organization.

Training programme

1. Introduction to AI and LLM models in the analytical context

LLM models change the analyst’s toolkit, but their value depends on knowing both their operating logic and their limits. This section explains deterministic versus probabilistic AI, shows where LLMs help or hinder data analysis, and frames the analyst’s role as it shifts toward orchestration of AI-supported systems.

  • what LLM models are and how they work,
  • deterministic vs probabilistic AI,
  • strengths and limitations of LLMs in data analysis,
  • where AI really helps the analyst and where it harms,
  • the evolution of the analyst's role: from „query operator” to „systems orchestrator”.

2. Token economics, context management and model selection for analytical tasks

Model choice in analytics is shaped not only by quality, but also by token cost, context limits and system design. This section connects token economics, context window management and RLM models with practical architecture decisions, including linking language models to databases and code execution layers.

  • token economics,
  • context window management,
  • RLM models,
  • model selection for the task,
  • AI systems architecture,
  • connecting the language model with the database and code.

3. Prompt Engineering for data analysis – fundamentals of effective communication with LLM models

Effective work with LLMs starts with understanding how the model processes instructions and context. Participants practice the structure of an analytical prompt, context engineering, system prompts, roles, constraints and output formats, together with preparing source data in Markdown, JSON, XML and CSV.

  • how an LLM model „thinks” and what this means for prompts,
  • structure of an analytical prompt,
  • context engineering,
  • preparation of data in Markdown, JSON, XML and CSV,
  • system prompt,
  • defining roles, constraints and output formats.

4. Prompt Engineering in work with SQL and business requirements

Turning business questions into usable SQL depends on how prompts define intent, structure and constraints. The material covers generation and refactoring of SQL queries, analysis of existing statements, readability and optimization issues, as well as handling edge cases that often affect analytical correctness.

  • generating SQL queries,
  • refactoring SQL queries,
  • translating business requirements into analytical queries,
  • analysis of existing queries,
  • readability and optimization,
  • identification of edge cases.

5. “Memory” of AI systems and the use of additional knowledge sources in analyses

RAG and Agentic RAG extend model responses beyond the prompt by attaching external knowledge to the analysis process. Attention is given to vector and graph databases, ways of supplying context effectively, and methods for using organizational data so AI systems can operate with more relevant analytical grounding.

  • RAG,
  • Agentic RAG,
  • vector databases,
  • graph databases,
  • providing context to the model,
  • use of organizational data in AI systems.

6. Analytical cases – working with data, insights and KPIs

From raw results to business-relevant conclusions, AI can assist at several stages of analytical reasoning. The section covers automated summaries, product insight generation, hypothesis support, KPI creation and validation, plus sanity checks for anomalies, data gaps, illogical outputs and potential analytical errors.

  • automatic summaries of analysis results,
  • generation of product insights,
  • generation of hypotheses,
  • sanity checks,
  • detection of anomalies, gaps and illogical results,
  • creation and validation of KPIs,
  • identification of potential errors in data and analyses.

7. A/B tests and experiments using AI

Designing experiments with AI requires support that improves rigor without replacing statistical judgment. This part covers hypothesis formulation, AI assistance in experiment design, interpretation of test outcomes and result communication, along with the risks of automatic conclusions and the role of synthetic users or AI Personas.

  • AI support in designing experiments,
  • formulating test hypotheses,
  • interpretation of statistical results,
  • supporting inference and communication of results,
  • risks of automatic interpretations of A/B tests,
  • „synthetic users” and AI Personas.

8. Workshops on the team's real scenarios and integration of AI with the analyst's daily work

Working on the team’s own cases makes it possible to assess AI where it actually matters. Participants refine existing prompts, test alternative prompt variants, compare response quality and determine in which concrete scenarios AI works best as an analyst copilot rather than a replacement.

  • working on real examples from the team,
  • optimization of existing analytical prompts,
  • testing different variants of prompts,
  • comparing results and the quality of responses,
  • assessment of the usefulness of AI in specific use cases,
  • AI as the analyst's „copilot”, not a substitute.

9. Using AI in the daily analytical workflow and automation of repetitive tasks

Day-to-day analytical work often includes many small, repeatable steps that consume time without adding much insight. Here the focus is on using AI for ad-hoc analyses, data exploration, documentation, communication with business stakeholders and team practices that help automate routine analytical tasks.

  • ad-hoc analyses,
  • data exploration,
  • analysis documentation,
  • communication of insights to the business,
  • automation of repetitive analytical tasks,
  • best practices of teamwork with AI.

10. Quality, ethics, security and the recommended way of working with AI in an analytical team

Analytical teams need clear rules for using AI in a controlled way. The section addresses result validation, hallucination detection, auditability, Explainable AI and LLM-as-a-Judge, then places them in a workflow that also covers local models, data protection, hybrid setups and organizational checklists.

  • validation of results generated by AI,
  • the analyst's responsibility for the results,
  • methods of detecting hallucinations in numbers and facts,
  • auditability and Explainable AI,
  • LLM-as-a-Judge,
  • open-source models: Llama 3, Mistral, Gemma,
  • Ollama and LM Studio,
  • Local-First Analytics,
  • data anonymization and masking,
  • hybrid approach,
  • good organizational practices,
  • when to use AI and when to use classical methods,
  • checklists for analytical work with AI,
  • recommended workflow of an analyst supported by AI,
  • areas for the team's further development.

What are the prerequisites for participating in the training?

icon

SQL basics - You should be comfortable reading and writing simple SQL queries, including SELECT, JOIN, WHERE, GROUP BY, and aggregations, to fully benefit from the hands-on exercises.

icon

Analytics experience - You should have practical experience in data analysis or reporting so you can follow business questions, KPIs, and common data quality issues discussed during the training.

icon

Working with data - You should understand tables, columns, filters, and common data formats such as CSV or JSON, so you can work smoothly with the examples and prompts used in the course.

icon

Basic test statistics - You should know core concepts used in experiment analysis, such as hypothesis, metric, and significance, so you can properly follow the section devoted to A/B testing.