Oracle integration

Ask Oracle Database questions in plain English.

Finance and ERP data often sits in Oracle, where reaching it means asking a specialist for a report. Connect Oracle to InsightLab and ask in plain language instead. InsightLab builds the query and returns a table or chart you can follow up on.

Example questions

Accounts-payable questions in Oracle SQL.

Oracle’s SQL has its own date functions and its own way of limiting rows. These three accounts-payable questions show what each becomes in that dialect.

Illustrative examples. The SQL below was written by hand against a sample schema (ap_invoices and suppliers) to show the Oracle dialect. It is not output captured from InsightLab, and your own tables and columns will differ.

  1. “Which ten suppliers have we spent the most with so far this year?”

    TRUNC(SYSDATE, 'YYYY') is the first day of the current year. FETCH FIRST limits the result to ten rows. It arrived in Oracle 12c, and older code does the same job with ROWNUM.

    Illustrative Oracle SQL on a sample schema
    SELECT s.supplier_name,
           SUM(i.amount) AS total_spend
    FROM ap_invoices i
    JOIN suppliers s ON s.supplier_id = i.supplier_id
    WHERE i.invoice_date >= TRUNC(SYSDATE, 'YYYY')
    GROUP BY s.supplier_name
    ORDER BY total_spend DESC
    FETCH FIRST 10 ROWS ONLY;
  2. “What did suppliers invoice us each month over the last 12 months?”

    TRUNC with 'MM' rounds a date down to the first of its month, and ADD_MONTHS steps back eleven months from the start of the current one.

    Illustrative Oracle SQL on a sample schema
    SELECT TRUNC(invoice_date, 'MM') AS invoice_month,
           SUM(amount)               AS invoiced
    FROM ap_invoices
    WHERE invoice_date >= ADD_MONTHS(TRUNC(SYSDATE, 'MM'), -11)
    GROUP BY TRUNC(invoice_date, 'MM')
    ORDER BY invoice_month;
  3. “How much is unpaid, grouped by how many days overdue it is?”

    Subtracting one Oracle DATE from another gives a number of days, so the aging buckets are plain arithmetic. The inner query labels each unpaid invoice and the outer one adds them up. Sorting by the smallest number of days in each bucket lists them from not yet due to most overdue.

    Illustrative Oracle SQL on a sample schema
    SELECT aging_bucket,
           COUNT(*)    AS invoices,
           SUM(amount) AS outstanding
    FROM (
      SELECT amount,
             TRUNC(SYSDATE) - due_date AS days_overdue,
             CASE
               WHEN TRUNC(SYSDATE) - due_date <= 0  THEN 'Not yet due'
               WHEN TRUNC(SYSDATE) - due_date <= 30 THEN '1-30 days overdue'
               WHEN TRUNC(SYSDATE) - due_date <= 60 THEN '31-60 days overdue'
               ELSE 'Over 60 days overdue'
             END AS aging_bucket
      FROM ap_invoices
      WHERE paid_date IS NULL
    )
    GROUP BY aging_bucket
    ORDER BY MIN(days_overdue);
About Oracle

What’s distinctive about asking questions of Oracle.

Oracle Database is most often found under the systems a company cannot run without: ERP, finance, billing and supply chain. The data is authoritative, and it is also hard to reach. Schemas that have grown over many years can hold hundreds of tables, with short, abbreviated column names that only a few specialists can read.

This is where a shared vocabulary matters most. InsightLab lets you define internal terms and add reviewed question-and-SQL examples, so what the specialists know about the schema is written down once and used when queries are built.

A few Oracle habits are worth knowing when you read its SQL. A DATE value carries a time of day as well as a date, which is why TRUNC appears so often. Subtracting dates returns days. And a schema belongs to a database user, so the same table name can exist under several owners. InsightLab connections can be scoped to specific databases and schemas where supported.

For finance data

Shared definitions, with controls to match.

Finance numbers need two things before they can be widely asked about: agreed meanings and clear limits on who sees what.

Definitions the whole team shares

Define internal terms and add reviewed question-and-SQL examples to guide analysis. InsightLab looks up relevant business definitions when you ask a question.

Rules on rows and columns

Row-level rules limit which records a query can return. Column-level rules restrict access to sensitive fields on configured tables.

Recurring reports as dashboards

Save charts from a conversation to a dashboard and refresh the underlying queries when you need updated numbers, at month end for example.

FAQ

Questions about InsightLab and Oracle.

Can business users query Oracle without learning SQL?

Yes. They ask a business question in plain language, InsightLab builds the database query, and the result comes back as a table or chart. Follow-up questions continue in the same conversation.

Our Oracle column names are cryptic. Can InsightLab still work with them?

You can define internal terms and add reviewed question-and-SQL examples to guide analysis. When you ask a question, InsightLab looks up relevant business definitions and database context, and uses your team’s definitions when it builds queries.

How is access to sensitive finance data controlled?

Admins assign workspace roles and configure row- and column-level rules for database queries, so a query only returns the records and fields a person is allowed to see. Recorded activity can be reviewed in the admin console and filtered by user, activity or time period.

How much does it cost to use InsightLab with Oracle?

Pricing is covered in the demo, together with deployment and setup for your sources. Request a demo and tell us what your team wants to answer.

See it answer your team’s questions.

Tell us what your team wants to answer and which sources you use. We’ll walk through the product with you.

Request a demo